1
0
Fork 0
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:
Florian Schmaus 2015-01-19 08:38:41 +01:00
parent 6bf9498904
commit 8409dddffd
4 changed files with 27 additions and 4 deletions

View file

@ -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");
}