unsupported-encoding | the entity has sent a namespace prefix that is
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/packet/XMPPError.java b/smack-core/src/main/java/org/jivesoftware/smack/packet/XMPPError.java
index 8a259838f..fb9f18da2 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/packet/XMPPError.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/packet/XMPPError.java
@@ -31,6 +31,7 @@ import org.jivesoftware.smack.util.XmlStringBuilder;
* error condition as well as as an optional text explanation. Typical errors are:
*
*
+ * XMPP Errors
*
XMPP Error Condition | Type | RFC 6120 Section |
* bad-request | MODIFY | 8.3.3.1 |
* conflict | CANCEL | 8.3.3.2 |
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/util/ArrayBlockingQueueWithShutdown.java b/smack-core/src/main/java/org/jivesoftware/smack/util/ArrayBlockingQueueWithShutdown.java
index f8be19611..a24c06d49 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/util/ArrayBlockingQueueWithShutdown.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/util/ArrayBlockingQueueWithShutdown.java
@@ -236,7 +236,6 @@ public class ArrayBlockingQueueWithShutdown extends AbstractQueue implemen
* If the thread was was interrupted.
*
* So you have to check which is the case, e.g. by calling {@link #isShutdown()}.
- *
*
* @param e the element to add.
* @throws InterruptedException if interrupted while waiting or if the queue was shut down.
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/util/XmlStringBuilder.java b/smack-core/src/main/java/org/jivesoftware/smack/util/XmlStringBuilder.java
index 49d1a43a5..15b895908 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/util/XmlStringBuilder.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/util/XmlStringBuilder.java
@@ -191,7 +191,7 @@ public class XmlStringBuilder implements Appendable, CharSequence {
}
/**
- * Add a right angle bracket '>'.
+ * Add a right angle bracket '>'.
*
* @return a reference to this object.
*/
@@ -201,7 +201,7 @@ public class XmlStringBuilder implements Appendable, CharSequence {
}
/**
- * Add a right angle bracket '>'.
+ * Add a right angle bracket '>'.
*
* @return a reference to this object
* @deprecated use {@link #rightAngleBracket()} instead
@@ -306,7 +306,7 @@ public class XmlStringBuilder implements Appendable, CharSequence {
}
/**
- * Add the given attribute if value not null and value => 0.
+ * Add the given attribute if value not null and {@code value => 0}.
*
* @param name
* @param value
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bookmarks/BookmarkedConference.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bookmarks/BookmarkedConference.java
index 0bbb1395e..74e7fd85c 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bookmarks/BookmarkedConference.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bookmarks/BookmarkedConference.java
@@ -110,6 +110,7 @@ public class BookmarkedConference implements SharedBookmark {
this.password = password;
}
+ @Override
public boolean equals(Object obj) {
if(obj == null || !(obj instanceof BookmarkedConference)) {
return false;
@@ -118,6 +119,11 @@ public class BookmarkedConference implements SharedBookmark {
return conference.getJid().equalsIgnoreCase(jid);
}
+ @Override
+ public int hashCode() {
+ return getJid().hashCode();
+ }
+
protected void setShared(boolean isShared) {
this.isShared = isShared;
}
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bookmarks/BookmarkedURL.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bookmarks/BookmarkedURL.java
index d00161add..0a521bcdf 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bookmarks/BookmarkedURL.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bookmarks/BookmarkedURL.java
@@ -84,6 +84,7 @@ public class BookmarkedURL implements SharedBookmark {
return isRss;
}
+ @Override
public boolean equals(Object obj) {
if(!(obj instanceof BookmarkedURL)) {
return false;
@@ -92,6 +93,11 @@ public class BookmarkedURL implements SharedBookmark {
return url.getURL().equalsIgnoreCase(URL);
}
+ @Override
+ public int hashCode() {
+ return getURL().hashCode();
+ }
+
protected void setShared(boolean shared) {
this.isShared = shared;
}
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/Form.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/Form.java
index 84904f99a..7d376e103 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/Form.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/Form.java
@@ -27,11 +27,11 @@ import org.jivesoftware.smackx.xdata.packet.DataForm;
/**
* Represents a Form for gathering data. The form could be of the following types:
*
- * - form -> Indicates a form to fill out.
- * - submit -> The form is filled out, and this is the data that is being returned from
+ *
- form → Indicates a form to fill out.
+ * - submit → The form is filled out, and this is the data that is being returned from
* the form.
- * - cancel -> The form was cancelled. Tell the asker that piece of information.
- * - result -> Data results being returned from a search, or some other query.
+ * - cancel → The form was cancelled. Tell the asker that piece of information.
+ * - result → Data results being returned from a search, or some other query.
*
*
* Depending of the form's type different operations are available. For example, it's only possible
@@ -383,7 +383,7 @@ public class Form {
/**
* Returns the description of the data. It is similar to the title on a web page or an X
- * window. You can put a on either a form to fill out, or a set of data results.
+ * window. You can put a title on either a form to fill out, or a set of data results.
*
* @return description of the data.
*/
@@ -423,7 +423,7 @@ public class Form {
/**
* Sets the description of the data. It is similar to the title on a web page or an X window.
- * You can put a on either a form to fill out, or a set of data results.
+ * You can put a title on either a form to fill out, or a set of data results.
*
* @param title description of the data.
*/
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/FormField.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/FormField.java
index f546fa577..570a9ed8d 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/FormField.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/FormField.java
@@ -165,9 +165,10 @@ public class FormField implements NamedElement {
/**
* Returns a description that provides extra clarification about the question. This information
* could be presented to the user either in tool-tip, help button, or as a section of text
- * before the question.
- *
+ * before the question.
+ *
* If the question is of type FIXED then the description should remain empty.
+ *
*
* @return description that provides extra clarification about the question.
*/
@@ -255,9 +256,10 @@ public class FormField implements NamedElement {
/**
* Sets a description that provides extra clarification about the question. This information
* could be presented to the user either in tool-tip, help button, or as a section of text
- * before the question.
- *
+ * before the question.
+ *
* If the question is of type FIXED then the description should remain empty.
+ *
*
* @param description provides extra clarification about the question.
*/
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/XDataManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/XDataManager.java
index ebd948d99..54a226da8 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/XDataManager.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/XDataManager.java
@@ -51,7 +51,7 @@ public class XDataManager extends Manager {
/**
* Get the XDataManager for the given XMPP connection.
*
- * @param connection
+ * @param connection the XMPPConnection.
* @return the XDataManager
*/
public static synchronized XDataManager getInstanceFor(XMPPConnection connection) {
diff --git a/smack-im/src/main/java/org/jivesoftware/smack/roster/Roster.java b/smack-im/src/main/java/org/jivesoftware/smack/roster/Roster.java
index f77f5d7e4..8bad2b65b 100644
--- a/smack-im/src/main/java/org/jivesoftware/smack/roster/Roster.java
+++ b/smack-im/src/main/java/org/jivesoftware/smack/roster/Roster.java
@@ -69,14 +69,15 @@ import org.jxmpp.jid.parts.Resourcepart;
/**
* Represents a user's roster, which is the collection of users a person receives
- * presence updates for. Roster items are categorized into groups for easier management.
- *
+ * presence updates for. Roster items are categorized into groups for easier management.
+ *
* Others users may attempt to subscribe to this user using a subscription request. Three
* modes are supported for handling these requests:
* - {@link SubscriptionMode#accept_all accept_all} -- accept all subscription requests.
* - {@link SubscriptionMode#reject_all reject_all} -- reject all subscription requests.
* - {@link SubscriptionMode#manual manual} -- manually process all subscription requests.
*
+ *
*
* @author Matt Tucker
* @see #getInstanceFor(XMPPConnection)
@@ -253,11 +254,12 @@ public class Roster extends Manager {
/**
* Returns the subscription processing mode, which dictates what action
* Smack will take when subscription requests from other users are made.
- * The default subscription mode is {@link SubscriptionMode#accept_all}.
- *
+ * The default subscription mode is {@link SubscriptionMode#accept_all}.
+ *
* If using the manual mode, a PacketListener should be registered that
* listens for Presence packets that have a type of
* {@link org.jivesoftware.smack.packet.Presence.Type#subscribe}.
+ *
*
* @return the subscription mode.
*/
@@ -268,11 +270,12 @@ public class Roster extends Manager {
/**
* Sets the subscription processing mode, which dictates what action
* Smack will take when subscription requests from other users are made.
- * The default subscription mode is {@link SubscriptionMode#accept_all}.
- *
+ * The default subscription mode is {@link SubscriptionMode#accept_all}.
+ *
* If using the manual mode, a PacketListener should be registered that
* listens for Presence packets that have a type of
* {@link org.jivesoftware.smack.packet.Presence.Type#subscribe}.
+ *
*
* @param subscriptionMode the subscription mode.
*/
@@ -427,10 +430,11 @@ public class Roster extends Manager {
}
/**
- * Creates a new group.
- *
+ * Creates a new group.
+ *
* Note: you must add at least one entry to the group for the group to be kept
* after a logout/login. This is due to the way that XMPP stores group information.
+ *
*
* @param name the name of the group.
* @return a new group, or null if the group already exists
diff --git a/smack-java7/src/main/java/org/jivesoftware/smack/util/stringencoder/java7/Base64.java b/smack-java7/src/main/java/org/jivesoftware/smack/util/stringencoder/java7/Base64.java
index 6aa7d3cb7..093c60639 100644
--- a/smack-java7/src/main/java/org/jivesoftware/smack/util/stringencoder/java7/Base64.java
+++ b/smack-java7/src/main/java/org/jivesoftware/smack/util/stringencoder/java7/Base64.java
@@ -20,9 +20,10 @@ import java.util.logging.Level;
import java.util.logging.Logger;
/**
- * Encodes and decodes to and from Base64 notation.
- * This code was obtained from http://iharder.net/base64
- *
+ * Encodes and decodes to and from Base64 notation.
+ *
+ * This code was obtained from http://iharder.net/base64
+ *
*
* @author Robert Harder
* @author rob@iharder.net
diff --git a/smack-jingle-old/src/main/java/org/jivesoftware/smackx/jingleold/nat/ICECandidate.java b/smack-jingle-old/src/main/java/org/jivesoftware/smackx/jingleold/nat/ICECandidate.java
index f89d1d70a..20b37e068 100644
--- a/smack-jingle-old/src/main/java/org/jivesoftware/smackx/jingleold/nat/ICECandidate.java
+++ b/smack-jingle-old/src/main/java/org/jivesoftware/smackx/jingleold/nat/ICECandidate.java
@@ -293,11 +293,7 @@ public class ICECandidate extends TransportCandidate implements Comparable |