mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
Undeprecate Packet.getExtension(String)
as there a valid uses for it, see for example ChatStateManager:173.
This commit is contained in:
parent
5fcfe548f9
commit
c1aef37081
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue