mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-25 15:52:06 +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