mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 12:02:05 +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;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.jivesoftware.smack.packet.IQ;
|
||||
|
@ -51,7 +52,7 @@ public class BlockContactsIQ extends IQ {
|
|||
public BlockContactsIQ(List<Jid> jids) {
|
||||
super(ELEMENT, NAMESPACE);
|
||||
this.setType(Type.set);
|
||||
this.jids = jids;
|
||||
this.jids = Collections.unmodifiableList(jids);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue