From f79a7d9d5f3bd4444fda7e85426495d3fa097321 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sat, 19 Dec 2015 13:30:15 +0100 Subject: [PATCH] Fix javadoc warnings --- .../src/main/java/org/jivesoftware/smack/XMPPException.java | 4 ++-- .../org/jivesoftware/smack/packet/ExtensionElement.java | 1 - .../src/main/java/org/jivesoftware/smack/roster/Roster.java | 6 +++++- .../java/org/jivesoftware/smack/roster/RosterListener.java | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/XMPPException.java b/smack-core/src/main/java/org/jivesoftware/smack/XMPPException.java index 8171af5fe..434df7e09 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/XMPPException.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/XMPPException.java @@ -94,7 +94,7 @@ public abstract class XMPPException extends Exception { * @param message a description of the exception. * @param error the root cause of the exception. * @param wrappedThrowable the root cause of the exception. - * @deprecated use {@link XMPPErrorException(XMPPError)} instead. + * @deprecated use {@link #XMPPErrorException(XMPPError)} instead. */ @Deprecated public XMPPErrorException(String message, XMPPError error, Throwable wrappedThrowable) { @@ -108,7 +108,7 @@ public abstract class XMPPException extends Exception { * * @param message a description of the exception. * @param error the root cause of the exception. - * @deprecated use {@link XMPPErrorException(XMPPError)} instead. + * @deprecated use {@link #XMPPErrorException(XMPPError)} instead. */ @Deprecated public XMPPErrorException(String message, XMPPError error) { diff --git a/smack-core/src/main/java/org/jivesoftware/smack/packet/ExtensionElement.java b/smack-core/src/main/java/org/jivesoftware/smack/packet/ExtensionElement.java index 0f79fbe66..bfecd3f65 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/packet/ExtensionElement.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/packet/ExtensionElement.java @@ -30,7 +30,6 @@ package org.jivesoftware.smack.packet; * information see RFC 6120 ยง 8.4 Extended Content. *

* - * @see DefaultExtensionElement * @see org.jivesoftware.smack.provider.ExtensionElementProvider * @author Matt Tucker */ 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 2f6f8248e..2226505d0 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 @@ -131,7 +131,11 @@ public final class Roster extends Manager { */ private static SubscriptionMode defaultSubscriptionMode = SubscriptionMode.accept_all; - private static final int INITIAL_DEFAULT_NON_ROSTER_PRESENCE_MAP_SIZE = 1024; + /** + * The initial maximum size of the map holding presence information of entities without an Roster entry. Currently + * {@value #INITIAL_DEFAULT_NON_ROSTER_PRESENCE_MAP_SIZE}. + */ + public static final int INITIAL_DEFAULT_NON_ROSTER_PRESENCE_MAP_SIZE = 1024; private static int defaultNonRosterPresenceMapMaxSize = INITIAL_DEFAULT_NON_ROSTER_PRESENCE_MAP_SIZE; diff --git a/smack-im/src/main/java/org/jivesoftware/smack/roster/RosterListener.java b/smack-im/src/main/java/org/jivesoftware/smack/roster/RosterListener.java index 99c3fca1b..4e00d940a 100644 --- a/smack-im/src/main/java/org/jivesoftware/smack/roster/RosterListener.java +++ b/smack-im/src/main/java/org/jivesoftware/smack/roster/RosterListener.java @@ -75,7 +75,7 @@ public interface RosterListener { * presence packets will not cause this method to be called. * * @param presence the presence that changed. - * @see Roster#getPresence(BareJid) + * @see Roster#getPresence(org.jxmpp.jid.BareJid) */ public void presenceChanged(Presence presence); }