mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
Rename Stanza.getExtension(String, String) to getExtensionElement()
This commit is contained in:
parent
9879dea0bf
commit
7a57bb7c09
23 changed files with 39 additions and 39 deletions
|
@ -338,7 +338,7 @@ public abstract class Stanza implements StanzaView, TopLevelStreamElement {
|
|||
/**
|
||||
* Returns the first extension of this stanza that has the given namespace.
|
||||
* <p>
|
||||
* When possible, use {@link #getExtension(String, String)} instead.
|
||||
* When possible, use {@link #getExtensionElement(String, String)} instead.
|
||||
* </p>
|
||||
*
|
||||
* @param namespace the namespace of the extension that is desired.
|
||||
|
@ -358,7 +358,7 @@ public abstract class Stanza implements StanzaView, TopLevelStreamElement {
|
|||
* @param namespace the XML element namespace of the extension.
|
||||
* @return the extension, or <code>null</code> if it doesn't exist.
|
||||
*/
|
||||
public final ExtensionElement getExtension(String elementName, String namespace) {
|
||||
public final ExtensionElement getExtensionElement(String elementName, String namespace) {
|
||||
if (namespace == null) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue