accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [2/3] git commit: ACCUMULO-3217 Fix use of deprecated members
Date Thu, 09 Oct 2014 23:24:48 GMT
ACCUMULO-3217 Fix use of deprecated members


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/ccd4897e
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/ccd4897e
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/ccd4897e

Branch: refs/heads/master
Commit: ccd4897e10290a57cb6eb4737bc694b14cf65aed
Parents: ff1ceea
Author: Josh Elser <elserj@apache.org>
Authored: Thu Oct 9 19:23:52 2014 -0400
Committer: Josh Elser <elserj@apache.org>
Committed: Thu Oct 9 19:24:33 2014 -0400

----------------------------------------------------------------------
 .../test/java/org/apache/accumulo/test/KeyValueEqualityTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/ccd4897e/test/src/test/java/org/apache/accumulo/test/KeyValueEqualityTest.java
----------------------------------------------------------------------
diff --git a/test/src/test/java/org/apache/accumulo/test/KeyValueEqualityTest.java b/test/src/test/java/org/apache/accumulo/test/KeyValueEqualityTest.java
index 7dc6be9..045df38 100644
--- a/test/src/test/java/org/apache/accumulo/test/KeyValueEqualityTest.java
+++ b/test/src/test/java/org/apache/accumulo/test/KeyValueEqualityTest.java
@@ -19,7 +19,6 @@ package org.apache.accumulo.test;
 import java.util.Iterator;
 import java.util.Map.Entry;
 
-import org.apache.accumulo.core.Constants;
 import org.apache.accumulo.core.client.BatchWriter;
 import org.apache.accumulo.core.client.BatchWriterConfig;
 import org.apache.accumulo.core.client.Connector;
@@ -29,6 +28,7 @@ import org.apache.accumulo.core.client.security.tokens.PasswordToken;
 import org.apache.accumulo.core.data.Key;
 import org.apache.accumulo.core.data.Mutation;
 import org.apache.accumulo.core.data.Value;
+import org.apache.accumulo.core.security.Authorizations;
 import org.apache.accumulo.minicluster.MiniAccumuloCluster;
 import org.apache.accumulo.minicluster.MiniAccumuloConfig;
 import org.junit.AfterClass;
@@ -81,7 +81,7 @@ public class KeyValueEqualityTest {
     bw1.close();
     bw2.close();
 
-    Iterator<Entry<Key,Value>> t1 = conn.createScanner(table1, Constants.NO_AUTHS).iterator(),
t2 = conn.createScanner(table2, Constants.NO_AUTHS).iterator();
+    Iterator<Entry<Key,Value>> t1 = conn.createScanner(table1, Authorizations.EMPTY).iterator(),
t2 = conn.createScanner(table2, Authorizations.EMPTY).iterator();
     while (t1.hasNext() && t2.hasNext()) {
       // KeyValue, the implementation of Entry<Key,Value>, should support equality
and hashCode properly
       Entry<Key,Value> e1 = t1.next(), e2 = t2.next();


Mime
View raw message