mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
Make BlockContactsIQ immutable
This commit is contained in:
parent
965cbcc979
commit
07cba5b974
1 changed files with 2 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
||||||
*/
|
*/
|
||||||
package org.jivesoftware.smackx.blocking.element;
|
package org.jivesoftware.smackx.blocking.element;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.jivesoftware.smack.packet.IQ;
|
import org.jivesoftware.smack.packet.IQ;
|
||||||
|
@ -51,7 +52,7 @@ public class BlockContactsIQ extends IQ {
|
||||||
public BlockContactsIQ(List<Jid> jids) {
|
public BlockContactsIQ(List<Jid> jids) {
|
||||||
super(ELEMENT, NAMESPACE);
|
super(ELEMENT, NAMESPACE);
|
||||||
this.setType(Type.set);
|
this.setType(Type.set);
|
||||||
this.jids = jids;
|
this.jids = Collections.unmodifiableList(jids);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue