diff --git a/source/org/jivesoftware/smack/packet/Presence.java b/source/org/jivesoftware/smack/packet/Presence.java index d7448601c..a730146f8 100644 --- a/source/org/jivesoftware/smack/packet/Presence.java +++ b/source/org/jivesoftware/smack/packet/Presence.java @@ -150,7 +150,9 @@ public class Presence extends Packet { } /** - * Returns the mode of the presence update. + * Returns the mode of the presence update, or null if the mode is not set. + * A null presence mode value is interpreted to be the same thing as + * {@link Presence.Mode#available}. * * @return the mode. */ @@ -159,8 +161,8 @@ public class Presence extends Packet { } /** - * Sets the mode of the presence update. For the standard "available" state, set - * the mode to null. + * Sets the mode of the presence update. A null presence mode value is interpreted + * to be the same thing as {@link Presence.Mode#available}. * * @param mode the mode. */