roles to become unmodifiableSet

This commit is contained in:
javanna 2016-03-24 15:11:51 +01:00 committed by Luca Cavanna
parent cd05cf91f0
commit df2923ced4
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ public class DiscoveryNode implements Writeable<DiscoveryNode>, ToXContent {
roles.add(role);
}
}
return roles;
return Collections.unmodifiableSet(roles);
}
/**