Skip to content

Commit

Permalink
state getter fix + make user groups immutable set
Browse files Browse the repository at this point in the history
  • Loading branch information
tpetr committed Jul 17, 2015
1 parent cdfc22b commit 4933b81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -221,7 +221,7 @@ public int getUnknownRacks() {
return unknownRacks; return unknownRacks;
} }


public Optional<Boolean> isAuthDatastoreHealthy() { public Optional<Boolean> getAuthDatastoreHealthy() {
return authDatastoreHealthy; return authDatastoreHealthy;
} }


Expand Down
@@ -1,5 +1,7 @@
package com.hubspot.singularity; package com.hubspot.singularity;


import static com.google.common.collect.ImmutableSet.copyOf;

import java.util.Objects; import java.util.Objects;
import java.util.Set; import java.util.Set;


Expand All @@ -18,7 +20,7 @@ public SingularityUser(@JsonProperty("id") String id, @JsonProperty("name") Opti
this.id = id; this.id = id;
this.name = name; this.name = name;
this.email = email; this.email = email;
this.groups = groups; this.groups = copyOf(groups);
} }


public String getId() { public String getId() {
Expand Down

0 comments on commit 4933b81

Please sign in to comment.