From 5438fb7b332ae6c7f1b81a19f6c17b6d7c9e6fbb Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sun, 12 Apr 2020 12:16:36 +0200 Subject: [PATCH] core: add hint towards StanzaView.getExtension(Class) --- .../src/main/java/org/jivesoftware/smack/packet/Stanza.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/packet/Stanza.java b/smack-core/src/main/java/org/jivesoftware/smack/packet/Stanza.java index 2422db010..bedcad481 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/packet/Stanza.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/packet/Stanza.java @@ -352,6 +352,10 @@ public abstract class Stanza implements StanzaView, TopLevelStreamElement { * Returns the first extension that matches the specified element name and * namespace, or null if it doesn't exist. Extensions are * are arbitrary XML elements in standard XMPP stanzas. + *

+ * Note that it is recommended to use {@link #getExtension(Class)} instead of this method. + * The {@link #getExtension(Class)} is more robust, as it is type safe. + *

* * @param elementName the XML element name of the extension. * @param namespace the XML element namespace of the extension.