accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [3/6] git commit: ACCUMULO-2183 Remove the .equals in favor of an equality check that enforces compile-time type checking.
Date Fri, 24 Jan 2014 17:10:35 GMT
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/master
Commit: 1f96266cb249380a9a378ec1fdac84171d2c7465
Parents: 4e89c61
Author: Josh Elser <elserj@apache.org>
Authored: Fri Jan 24 11:56:41 2014 -0500
Committer: Josh Elser <elserj@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


Mime
View raw message