1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 14:22:05 +01:00

core: fix javadoc of Stanza.getExtensionElement(String, String)

The element name must not be null or empty.
This commit is contained in:
Florian Schmaus 2020-04-12 12:12:57 +02:00
parent 7a57bb7c09
commit 7bc2ebb731

View file

@ -350,11 +350,10 @@ public abstract class Stanza implements StanzaView, TopLevelStreamElement {
/** /**
* Returns the first extension that matches the specified element name and * Returns the first extension that matches the specified element name and
* namespace, or <code>null</code> if it doesn't exist. If the provided elementName is null, * namespace, or <code>null</code> if it doesn't exist. Extensions are
* only the namespace is matched. Extensions are
* are arbitrary XML elements in standard XMPP stanzas. * 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. * @param namespace the XML element namespace of the extension.
* @return the extension, or <code>null</code> if it doesn't exist. * @return the extension, or <code>null</code> if it doesn't exist.
*/ */