mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-25 15:52:06 +01:00
[core] Fix deprecation javadoc in Presence
It should hint towards the StanzaFactory not SocketFactory.
This commit is contained in:
parent
054fd9ae44
commit
68a453d3b3
1 changed files with 7 additions and 9 deletions
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Copyright 2003-2007 Jive Software.
|
* Copyright 2003-2007 Jive Software, 2020 Florian Schmaus.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -20,8 +20,6 @@ package org.jivesoftware.smack.packet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
import javax.net.SocketFactory;
|
|
||||||
|
|
||||||
import org.jivesoftware.smack.util.Objects;
|
import org.jivesoftware.smack.util.Objects;
|
||||||
import org.jivesoftware.smack.util.StringUtils;
|
import org.jivesoftware.smack.util.StringUtils;
|
||||||
import org.jivesoftware.smack.util.TypedCloneable;
|
import org.jivesoftware.smack.util.TypedCloneable;
|
||||||
|
@ -100,7 +98,7 @@ public final class Presence extends MessageOrPresence<PresenceBuilder>
|
||||||
* @param to the recipient.
|
* @param to the recipient.
|
||||||
* @param type the type.
|
* @param type the type.
|
||||||
* @since 4.2
|
* @since 4.2
|
||||||
* @deprecated use {@link StanzaBuilder} or {@link SocketFactory} instead.
|
* @deprecated use {@link PresenceBuilder} or {@link org.jivesoftware.smack.XMPPConnection#getStanzaFactory} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
// TODO: Remove in Smack 4.5.
|
// TODO: Remove in Smack 4.5.
|
||||||
|
@ -116,7 +114,7 @@ public final class Presence extends MessageOrPresence<PresenceBuilder>
|
||||||
* @param status a text message describing the presence update.
|
* @param status a text message describing the presence update.
|
||||||
* @param priority the priority of this presence update.
|
* @param priority the priority of this presence update.
|
||||||
* @param mode the mode type for this presence update.
|
* @param mode the mode type for this presence update.
|
||||||
* @deprecated use {@link StanzaBuilder} or {@link SocketFactory} instead.
|
* @deprecated use {@link PresenceBuilder} or {@link org.jivesoftware.smack.XMPPConnection#getStanzaFactory} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
// TODO: Remove in Smack 4.5.
|
// TODO: Remove in Smack 4.5.
|
||||||
|
@ -192,7 +190,7 @@ public final class Presence extends MessageOrPresence<PresenceBuilder>
|
||||||
* Sets the type of the presence packet.
|
* Sets the type of the presence packet.
|
||||||
*
|
*
|
||||||
* @param type the type of the presence packet.
|
* @param type the type of the presence packet.
|
||||||
* @deprecated use {@link StanzaBuilder} or {@link SocketFactory} instead.
|
* @deprecated use {@link PresenceBuilder} or {@link org.jivesoftware.smack.XMPPConnection#getStanzaFactory} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
// TODO: Remove in Smack 4.5.
|
// TODO: Remove in Smack 4.5.
|
||||||
|
@ -210,7 +208,7 @@ public final class Presence extends MessageOrPresence<PresenceBuilder>
|
||||||
* describing a user's presence (i.e., "gone to lunch").
|
* describing a user's presence (i.e., "gone to lunch").
|
||||||
*
|
*
|
||||||
* @param status the status message.
|
* @param status the status message.
|
||||||
* @deprecated use {@link StanzaBuilder} or {@link SocketFactory} instead.
|
* @deprecated use {@link PresenceBuilder} or {@link org.jivesoftware.smack.XMPPConnection#getStanzaFactory} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
// TODO: Remove in Smack 4.5.
|
// TODO: Remove in Smack 4.5.
|
||||||
|
@ -237,7 +235,7 @@ public final class Presence extends MessageOrPresence<PresenceBuilder>
|
||||||
* @param priority the priority of the presence.
|
* @param priority the priority of the presence.
|
||||||
* @throws IllegalArgumentException if the priority is outside the valid range.
|
* @throws IllegalArgumentException if the priority is outside the valid range.
|
||||||
* @see <a href="https://tools.ietf.org/html/rfc6121#section-4.7.2.3">RFC 6121 § 4.7.2.3. Priority Element</a>
|
* @see <a href="https://tools.ietf.org/html/rfc6121#section-4.7.2.3">RFC 6121 § 4.7.2.3. Priority Element</a>
|
||||||
* @deprecated use {@link StanzaBuilder} or {@link SocketFactory} instead.
|
* @deprecated use {@link PresenceBuilder} or {@link org.jivesoftware.smack.XMPPConnection#getStanzaFactory} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
// TODO: Remove in Smack 4.5.
|
// TODO: Remove in Smack 4.5.
|
||||||
|
@ -266,7 +264,7 @@ public final class Presence extends MessageOrPresence<PresenceBuilder>
|
||||||
* to be the same thing as {@link Presence.Mode#available}.
|
* to be the same thing as {@link Presence.Mode#available}.
|
||||||
*
|
*
|
||||||
* @param mode the mode.
|
* @param mode the mode.
|
||||||
* @deprecated use {@link StanzaBuilder} or {@link SocketFactory} instead.
|
* @deprecated use {@link PresenceBuilder} or {@link org.jivesoftware.smack.XMPPConnection#getStanzaFactory} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
// TODO: Remove in Smack 4.5.
|
// TODO: Remove in Smack 4.5.
|
||||||
|
|
Loading…
Reference in a new issue