roles to become unmodifiableSet
This commit is contained in:
parent
cd05cf91f0
commit
df2923ced4
|
@ -234,7 +234,7 @@ public class DiscoveryNode implements Writeable<DiscoveryNode>, ToXContent {
|
|||
roles.add(role);
|
||||
}
|
||||
}
|
||||
return roles;
|
||||
return Collections.unmodifiableSet(roles);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue