From 7bc2ebb73129e18ce43ecb3652184578f19ae1ae Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sun, 12 Apr 2020 12:12:57 +0200 Subject: [PATCH] core: fix javadoc of Stanza.getExtensionElement(String, String) The element name must not be null or empty. --- .../src/main/java/org/jivesoftware/smack/packet/Stanza.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 e55f746da..2e8123ec8 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 @@ -350,11 +350,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. If the provided elementName is null, - * only the namespace is matched. Extensions are + * namespace, or null if it doesn't exist. Extensions are * are arbitrary XML elements in standard XMPP stanzas. * - * @param elementName the XML element name of the extension. (May be null) + * @param elementName the XML element name of the extension. * @param namespace the XML element namespace of the extension. * @return the extension, or null if it doesn't exist. */