mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 09:39:39 +02:00
Add PacketUtil.extensionElementFrom()
and deprecate extensionElementfromCollection()
This commit is contained in:
parent
6bf9498904
commit
8409dddffd
4 changed files with 27 additions and 4 deletions
|
@ -46,7 +46,7 @@ public class RSMManager {
|
|||
if (additionalExtensions == null) {
|
||||
additionalExtensions = new LinkedList<PacketExtension>();
|
||||
}
|
||||
RSMSet resultRsmSet = PacketUtil.packetExtensionfromCollection(returnedExtensions, RSMSet.ELEMENT, RSMSet.NAMESPACE);
|
||||
RSMSet resultRsmSet = PacketUtil.extensionElementFrom(returnedExtensions, RSMSet.ELEMENT, RSMSet.NAMESPACE);
|
||||
if (resultRsmSet == null) {
|
||||
throw new IllegalArgumentException("returnedExtensions did not contain a RSMset");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue