Updated Branches: refs/heads/1.5.1-SNAPSHOT 4e89c6145 -> 1f96266cb refs/heads/1.6.0-SNAPSHOT d2e36ebb0 -> e7ba8ea43 refs/heads/master 6aed342bf -> 9dc84f32f
ACCUMULO-2183 Remove the .equals in favor of an equality check that enforces compile-time type checking. Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/1f96266c Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/1f96266c Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/1f96266c Branch: refs/heads/1.5.1-SNAPSHOT Commit: 1f96266cb249380a9a378ec1fdac84171d2c7465 Parents: 4e89c61 Author: Josh Elser <els...@apache.org> Authored: Fri Jan 24 11:56:41 2014 -0500 Committer: Josh Elser <els...@apache.org> Committed: Fri Jan 24 11:56:41 2014 -0500 ---------------------------------------------------------------------- .../org/apache/accumulo/test/randomwalk/security/Validate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/1f96266c/test/src/main/java/org/apache/accumulo/test/randomwalk/security/Validate.java ---------------------------------------------------------------------- diff --git a/test/src/main/java/org/apache/accumulo/test/randomwalk/security/Validate.java b/test/src/main/java/org/apache/accumulo/test/randomwalk/security/Validate.java index 047bba3..eb97d23 100644 --- a/test/src/main/java/org/apache/accumulo/test/randomwalk/security/Validate.java +++ b/test/src/main/java/org/apache/accumulo/test/randomwalk/security/Validate.java @@ -108,7 +108,7 @@ public class Validate extends Test { auths = WalkingSecurity.get(state).getUserAuthorizations(WalkingSecurity.get(state).getTabCredentials()); accuAuths = conn.securityOperations().getUserAuthorizations(WalkingSecurity.get(state).getTabUserName()); } catch (ThriftSecurityException ae) { - if (ae.getCode().equals(org.apache.accumulo.core.client.impl.thrift.SecurityErrorCode.USER_DOESNT_EXIST)) { + if (ae.getCode() == org.apache.accumulo.core.client.impl.thrift.SecurityErrorCode.USER_DOESNT_EXIST) { if (tableUserExists) throw new AccumuloException("Table user didn't exist when they should.", ae); else