mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-14 06:51: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
|
|
@ -73,7 +73,7 @@ import org.jxmpp.util.cache.LruCache;
|
|||
|
||||
/**
|
||||
* Keeps track of entity capabilities.
|
||||
*
|
||||
*
|
||||
* @author Florian Schmaus
|
||||
* @see <a href="http://www.xmpp.org/extensions/xep-0115.html">XEP-0115: Entity Capabilities</a>
|
||||
*/
|
||||
|
|
@ -141,7 +141,7 @@ public final class EntityCapsManager extends Manager {
|
|||
|
||||
/**
|
||||
* Add DiscoverInfo to the database.
|
||||
*
|
||||
*
|
||||
* @param nodeVer
|
||||
* The node and verification String (e.g.
|
||||
* "http://psi-im.org#q07IKJEyjvHSyhy//CH0CxmKi8w=").
|
||||
|
|
@ -158,7 +158,7 @@ public final class EntityCapsManager extends Manager {
|
|||
/**
|
||||
* Get the Node version (node#ver) of a JID. Returns a String or null if
|
||||
* EntiyCapsManager does not have any information.
|
||||
*
|
||||
*
|
||||
* @param jid
|
||||
* the user (Full JID)
|
||||
* @return the node version (node#ver) or null
|
||||
|
|
@ -180,7 +180,7 @@ public final class EntityCapsManager extends Manager {
|
|||
* Get the discover info given a user name. The discover info is returned if
|
||||
* the user has a node#ver associated with it and the node#ver has a
|
||||
* discover info associated with it.
|
||||
*
|
||||
*
|
||||
* @param user
|
||||
* user name (Full JID)
|
||||
* @return the discovered info
|
||||
|
|
@ -195,7 +195,7 @@ public final class EntityCapsManager extends Manager {
|
|||
|
||||
/**
|
||||
* Retrieve DiscoverInfo for a specific node.
|
||||
*
|
||||
*
|
||||
* @param nodeVer
|
||||
* The node name (e.g.
|
||||
* "http://psi-im.org#q07IKJEyjvHSyhy//CH0CxmKi8w=").
|
||||
|
|
@ -222,7 +222,7 @@ public final class EntityCapsManager extends Manager {
|
|||
|
||||
/**
|
||||
* Set the persistent cache implementation.
|
||||
*
|
||||
*
|
||||
* @param cache
|
||||
*/
|
||||
public static void setPersistentCache(EntityCapsPersistentCache cache) {
|
||||
|
|
@ -404,7 +404,7 @@ public final class EntityCapsManager extends Manager {
|
|||
|
||||
/**
|
||||
* Remove a record telling what entity caps node a user has.
|
||||
*
|
||||
*
|
||||
* @param user
|
||||
* the user (Full JID)
|
||||
*/
|
||||
|
|
@ -417,7 +417,7 @@ public final class EntityCapsManager extends Manager {
|
|||
/**
|
||||
* Get our own caps version. The version depends on the enabled features.
|
||||
* A caps version looks like '66/0NaeaBKkwk85efJTGmU47vXI='
|
||||
*
|
||||
*
|
||||
* @return our own caps version
|
||||
*/
|
||||
public CapsVersionAndHash getCapsVersionAndHash() {
|
||||
|
|
@ -428,7 +428,7 @@ public final class EntityCapsManager extends Manager {
|
|||
* Returns the local entity's NodeVer (e.g.
|
||||
* "http://www.igniterealtime.org/projects/smack/#66/0NaeaBKkwk85efJTGmU47vXI=
|
||||
* )
|
||||
*
|
||||
*
|
||||
* @return the local NodeVer
|
||||
*/
|
||||
public String getLocalNodeVer() {
|
||||
|
|
@ -441,13 +441,13 @@ public final class EntityCapsManager extends Manager {
|
|||
|
||||
/**
|
||||
* Returns true if Entity Caps are supported by a given JID.
|
||||
*
|
||||
*
|
||||
* @param jid
|
||||
* @return true if the entity supports Entity Capabilities.
|
||||
* @throws XMPPErrorException
|
||||
* @throws NoResponseException
|
||||
* @throws NotConnectedException
|
||||
* @throws InterruptedException
|
||||
* @throws XMPPErrorException
|
||||
* @throws NoResponseException
|
||||
* @throws NotConnectedException
|
||||
* @throws InterruptedException
|
||||
*/
|
||||
public boolean areEntityCapsSupported(Jid jid) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
|
||||
return sdm.supportsFeature(jid, NAMESPACE);
|
||||
|
|
@ -455,12 +455,12 @@ public final class EntityCapsManager extends Manager {
|
|||
|
||||
/**
|
||||
* Returns true if Entity Caps are supported by the local service/server.
|
||||
*
|
||||
*
|
||||
* @return true if the user's server supports Entity Capabilities.
|
||||
* @throws XMPPErrorException
|
||||
* @throws NoResponseException
|
||||
* @throws NotConnectedException
|
||||
* @throws InterruptedException
|
||||
* @throws XMPPErrorException
|
||||
* @throws NoResponseException
|
||||
* @throws NotConnectedException
|
||||
* @throws InterruptedException
|
||||
*/
|
||||
public boolean areEntityCapsSupportedByServer() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
|
||||
return areEntityCapsSupported(connection().getXMPPServiceDomain());
|
||||
|
|
@ -531,10 +531,10 @@ public final class EntityCapsManager extends Manager {
|
|||
/**
|
||||
* Verify DiscoverInfo and Caps Node as defined in XEP-0115 5.4 Processing
|
||||
* Method.
|
||||
*
|
||||
*
|
||||
* @see <a href="http://xmpp.org/extensions/xep-0115.html#ver-proc">XEP-0115
|
||||
* 5.4 Processing Method</a>
|
||||
*
|
||||
*
|
||||
* @param ver
|
||||
* @param hash
|
||||
* @param info
|
||||
|
|
@ -562,7 +562,7 @@ public final class EntityCapsManager extends Manager {
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param info
|
||||
* @return true if the stanza extensions is ill-formed
|
||||
*/
|
||||
|
|
@ -591,10 +591,10 @@ public final class EntityCapsManager extends Manager {
|
|||
|
||||
/**
|
||||
* Generates a XEP-115 Verification String
|
||||
*
|
||||
*
|
||||
* @see <a href="http://xmpp.org/extensions/xep-0115.html#ver">XEP-115
|
||||
* Verification String</a>
|
||||
*
|
||||
*
|
||||
* @param discoverInfo
|
||||
* @param hash
|
||||
* the used hash function, if null, default hash will be used
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import org.jivesoftware.smackx.disco.packet.DiscoverInfo;
|
|||
public interface EntityCapsPersistentCache {
|
||||
/**
|
||||
* Add an DiscoverInfo to the persistent Cache.
|
||||
*
|
||||
*
|
||||
* @param nodeVer
|
||||
* @param info
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -35,9 +35,9 @@ import org.jivesoftware.smackx.disco.packet.DiscoverInfo;
|
|||
* Simple implementation of an EntityCapsPersistentCache that uses a directory
|
||||
* to store the Caps information for every known node. Every node is represented
|
||||
* by a file.
|
||||
*
|
||||
*
|
||||
* @author Florian Schmaus
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class SimpleDirectoryPersistentCache implements EntityCapsPersistentCache {
|
||||
private static final Logger LOGGER = Logger.getLogger(SimpleDirectoryPersistentCache.class.getName());
|
||||
|
|
@ -49,10 +49,10 @@ public class SimpleDirectoryPersistentCache implements EntityCapsPersistentCache
|
|||
* Creates a new SimpleDirectoryPersistentCache Object. Make sure that the
|
||||
* cacheDir exists and that it's an directory.
|
||||
* <p>
|
||||
* Default filename encoder {@link Base32}, as this will work on all
|
||||
* file systems, both case sensitive and case insensitive. It does however
|
||||
* Default filename encoder {@link Base32}, as this will work on all
|
||||
* file systems, both case sensitive and case insensitive. It does however
|
||||
* produce longer filenames.
|
||||
*
|
||||
*
|
||||
* @param cacheDir
|
||||
*/
|
||||
public SimpleDirectoryPersistentCache(File cacheDir) {
|
||||
|
|
@ -62,10 +62,10 @@ public class SimpleDirectoryPersistentCache implements EntityCapsPersistentCache
|
|||
/**
|
||||
* Creates a new SimpleDirectoryPersistentCache Object. Make sure that the
|
||||
* cacheDir exists and that it's an directory.
|
||||
*
|
||||
*
|
||||
* If your cacheDir is case insensitive then make sure to set the
|
||||
* StringEncoder to {@link Base32} (which is the default).
|
||||
*
|
||||
*
|
||||
* @param cacheDir The directory where the cache will be stored.
|
||||
* @param filenameEncoder Encodes the node string into a filename.
|
||||
*/
|
||||
|
|
@ -124,7 +124,7 @@ public class SimpleDirectoryPersistentCache implements EntityCapsPersistentCache
|
|||
|
||||
/**
|
||||
* Writes the DiscoverInfo stanza to an file
|
||||
*
|
||||
*
|
||||
* @param file
|
||||
* @param info
|
||||
* @throws IOException
|
||||
|
|
@ -140,7 +140,7 @@ public class SimpleDirectoryPersistentCache implements EntityCapsPersistentCache
|
|||
|
||||
/**
|
||||
* Tries to restore an DiscoverInfo stanza from a file.
|
||||
*
|
||||
*
|
||||
* @param file
|
||||
* @return the restored DiscoverInfo
|
||||
* @throws Exception
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue