From 4775f350ae14da8a7dfe022dd3bd3798a754ceae Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Tue, 21 Nov 2017 21:04:13 +0100 Subject: [PATCH] Add javadoc to Presence.priority --- .../main/java/org/jivesoftware/smack/packet/Presence.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/packet/Presence.java b/smack-core/src/main/java/org/jivesoftware/smack/packet/Presence.java index 71d7c3697..8bd7c1e0d 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/packet/Presence.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/packet/Presence.java @@ -66,7 +66,15 @@ public final class Presence extends Stanza implements TypedCloneable { private Type type = Type.available; private String status = null; + + /** + * The priority of the presence. The magic value {@link Integer#MIN_VALUE} is used to indicate that the original + * presence stanza did not had an explicit priority set. In which case the priority defaults to 0. + * + * @see RFC 6121 ยง 4.7.2.3. + */ private int priority = Integer.MIN_VALUE; + private Mode mode = null; /**