Merge "Add ls-users command"
diff --git a/src/main/java/com/googlesource/gerrit/plugins/adminconsole/ShowRepoAccessCommand.java b/src/main/java/com/googlesource/gerrit/plugins/adminconsole/ShowRepoAccessCommand.java
index 852d801..d8ca185 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/adminconsole/ShowRepoAccessCommand.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/adminconsole/ShowRepoAccessCommand.java
@@ -85,7 +85,7 @@
             stdout
                 .print(String.format(ruleNameFormatter, permission.getName()));
             stdout.print(String.format(permissionNameFormatter,
-                (rule.getMin() != rule.getMax()) ? "" + rule.getMin() + " "
+                (!rule.getMin().equals(rule.getMax())) ? "" + rule.getMin() + " "
                     + rule.getMax() : rule.getAction(),
                 (permission.getExclusiveGroup() ? "EXCLUSIVE" : ""),
                 format(rule.getGroup().getName())));
diff --git a/src/main/java/com/googlesource/gerrit/plugins/adminconsole/ShowRepoAccountAccessCommand.java b/src/main/java/com/googlesource/gerrit/plugins/adminconsole/ShowRepoAccountAccessCommand.java
index b6228a5..77867c7 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/adminconsole/ShowRepoAccountAccessCommand.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/adminconsole/ShowRepoAccountAccessCommand.java
@@ -149,7 +149,7 @@
               if (groupHash.contains(rule.getGroup().getName())) {
                 sb.append(String.format(ruleNameFormatter, permission.getName()));
                 sb.append(String.format(permissionNameFormatter,
-                    (rule.getMin() != rule.getMax()) ? "" + rule.getMin() + " "
+                    (!rule.getMin().equals(rule.getMax())) ? "" + rule.getMin() + " "
                         + rule.getMax() : rule.getAction(),
                     (permission.getExclusiveGroup() ? "EXCLUSIVE" : ""),
                     format(rule.getGroup().getName())));