mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-13 14:31:08 +01:00
Enable trailing whitespace checkstyle check
for all source code regions, including javadoc.
This commit is contained in:
parent
9d61a6de7d
commit
e8923b9d16
545 changed files with 3713 additions and 3715 deletions
|
|
@ -85,7 +85,7 @@ public final class CarbonManager extends Manager {
|
|||
});
|
||||
}
|
||||
|
||||
private static final StanzaFilter CARBON_EXTENSION_FILTER =
|
||||
private static final StanzaFilter CARBON_EXTENSION_FILTER =
|
||||
// @formatter:off
|
||||
new AndFilter(
|
||||
new OrFilter(
|
||||
|
|
@ -221,12 +221,12 @@ public final class CarbonManager extends Manager {
|
|||
|
||||
/**
|
||||
* Returns true if XMPP Carbons are supported by the server.
|
||||
*
|
||||
*
|
||||
* @return true if supported
|
||||
* @throws NotConnectedException
|
||||
* @throws XMPPErrorException
|
||||
* @throws NoResponseException
|
||||
* @throws InterruptedException
|
||||
* @throws NotConnectedException
|
||||
* @throws XMPPErrorException
|
||||
* @throws NoResponseException
|
||||
* @throws InterruptedException
|
||||
*/
|
||||
public boolean isSupportedByServer() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
|
||||
return ServiceDiscoveryManager.getInstanceFor(connection()).serverSupportsFeature(CarbonExtension.NAMESPACE);
|
||||
|
|
@ -239,7 +239,7 @@ public final class CarbonManager extends Manager {
|
|||
* You should first check for support using isSupportedByServer().
|
||||
*
|
||||
* @param new_state whether carbons should be enabled or disabled
|
||||
* @throws NotConnectedException
|
||||
* @throws NotConnectedException
|
||||
* @throws InterruptedException
|
||||
* @deprecated use {@link #enableCarbonsAsync(ExceptionCallback)} or {@link #disableCarbonsAsync(ExceptionCallback)} instead.
|
||||
*/
|
||||
|
|
@ -256,7 +256,7 @@ public final class CarbonManager extends Manager {
|
|||
* because of a slow network connection). Thus, if the thread performing this operation is interrupted while the
|
||||
* queue is full, an {@link InterruptedException} is thrown.
|
||||
* </p>
|
||||
*
|
||||
*
|
||||
* @param exceptionCallback the optional exception callback.
|
||||
* @since 4.2
|
||||
*/
|
||||
|
|
@ -272,7 +272,7 @@ public final class CarbonManager extends Manager {
|
|||
* because of a slow network connection). Thus, if the thread performing this operation is interrupted while the
|
||||
* queue is full, an {@link InterruptedException} is thrown.
|
||||
* </p>
|
||||
*
|
||||
*
|
||||
* @param exceptionCallback the optional exception callback.
|
||||
* @since 4.2
|
||||
*/
|
||||
|
|
@ -302,10 +302,10 @@ public final class CarbonManager extends Manager {
|
|||
* You should first check for support using isSupportedByServer().
|
||||
*
|
||||
* @param new_state whether carbons should be enabled or disabled
|
||||
* @throws XMPPErrorException
|
||||
* @throws NoResponseException
|
||||
* @throws NotConnectedException
|
||||
* @throws InterruptedException
|
||||
* @throws XMPPErrorException
|
||||
* @throws NoResponseException
|
||||
* @throws NotConnectedException
|
||||
* @throws InterruptedException
|
||||
*
|
||||
*/
|
||||
public synchronized void setCarbonsEnabled(final boolean new_state) throws NoResponseException,
|
||||
|
|
@ -322,9 +322,9 @@ public final class CarbonManager extends Manager {
|
|||
/**
|
||||
* Helper method to enable carbons.
|
||||
*
|
||||
* @throws XMPPException
|
||||
* @throws XMPPException
|
||||
* @throws SmackException if there was no response from the server.
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException
|
||||
*/
|
||||
public void enableCarbons() throws XMPPException, SmackException, InterruptedException {
|
||||
setCarbonsEnabled(true);
|
||||
|
|
@ -333,9 +333,9 @@ public final class CarbonManager extends Manager {
|
|||
/**
|
||||
* Helper method to disable carbons.
|
||||
*
|
||||
* @throws XMPPException
|
||||
* @throws XMPPException
|
||||
* @throws SmackException if there was no response from the server.
|
||||
* @throws InterruptedException
|
||||
* @throws InterruptedException
|
||||
*/
|
||||
public void disableCarbons() throws XMPPException, SmackException, InterruptedException {
|
||||
setCarbonsEnabled(false);
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ import org.jivesoftware.smackx.forward.packet.Forwarded;
|
|||
* Stanza extension for XEP-0280: Message Carbons. The extension
|
||||
* <a href="http://xmpp.org/extensions/xep-0280.html">XEP-0280</a> is
|
||||
* meant to synchronize a message flow to multiple presences of a user.
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* It accomplishes this by wrapping a {@link Forwarded} stanza in a <b>sent</b>
|
||||
* or <b>received</b> element
|
||||
|
|
@ -41,7 +41,7 @@ public class CarbonExtension implements ExtensionElement {
|
|||
|
||||
/**
|
||||
* Construct a Carbon message extension.
|
||||
*
|
||||
*
|
||||
* @param dir Determines if the carbon is being sent/received
|
||||
* @param fwd The forwarded message.
|
||||
*/
|
||||
|
|
@ -130,7 +130,7 @@ public class CarbonExtension implements ExtensionElement {
|
|||
|
||||
/**
|
||||
* Stanza extension indicating that a message may not be carbon-copied. Adding this
|
||||
* extension to any message will disallow that message from being copied.
|
||||
* extension to any message will disallow that message from being copied.
|
||||
*/
|
||||
public static final class Private implements ExtensionElement {
|
||||
public static final Private INSTANCE = new Private();
|
||||
|
|
@ -157,7 +157,7 @@ public class CarbonExtension implements ExtensionElement {
|
|||
/**
|
||||
* Marks a message "private", so that it will not be carbon-copied, by adding private packet
|
||||
* extension to the message.
|
||||
*
|
||||
*
|
||||
* @param message the message to add the private extension to
|
||||
*/
|
||||
public static void addTo(Message message) {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import org.xmlpull.v1.XmlPullParser;
|
|||
/**
|
||||
* This class implements the {@link ExtensionElementProvider} to parse
|
||||
* carbon copied messages from a packet. It will return a {@link CarbonExtension} stanza extension.
|
||||
*
|
||||
*
|
||||
* @author Georg Lukas
|
||||
*
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue