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
1 changed files with 2 additions and 3 deletions

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.
*/ */