1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 20:47:57 +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
* namespace, or <code>null</code> if it doesn't exist. If the provided elementName is null,
* only the namespace is matched. Extensions are
* namespace, or <code>null</code> 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 <code>null</code> if it doesn't exist.
*/