1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 05:52:06 +01:00

Undeprecate Packet.getExtension(String)

as there a valid uses for it, see for example ChatStateManager:173.
This commit is contained in:
Florian Schmaus 2014-10-31 17:12:24 +01:00
parent 5fcfe548f9
commit c1aef37081

View file

@ -219,12 +219,13 @@ public abstract class Packet extends TopLevelStreamElement {
/**
* Returns the first extension of this packet that has the given namespace.
* <p>
* When possible, use {@link #getExtension(String,String)} instead.
* </p>
*
* @param namespace the namespace of the extension that is desired.
* @return the packet extension with the given namespace.
* @deprecated use {@link #getExtension(String,String)} instead.
*/
@Deprecated
public PacketExtension getExtension(String namespace) {
return PacketUtil.packetExtensionfromCollection(getExtensions(), null, namespace);
}