Skip to content

Commit

Permalink
Remove warnings from apache#1495
Browse files Browse the repository at this point in the history
Remove unused variable warnings
  • Loading branch information
ctubbsii committed Feb 20, 2020
1 parent d02a662 commit 2b0b971
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.google.common.collect.Iterables;

/**
* Ensures that all threads spawned for ZooKeeper and Thrift connectivity are reaped after calling
* CleanUp.shutdown().
Expand Down Expand Up @@ -130,10 +132,7 @@ public void run() throws Exception {
}

try {
count = 0;
for (Entry<Key,Value> keyValueEntry : scanner) {
count++;
}
count = Iterables.size(scanner);
fail("scanner did not fail");
} catch (Exception e) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

import java.io.IOException;
Expand Down Expand Up @@ -722,7 +723,7 @@ private void testGrantedTablePermission(AccumuloClient test_user_client, TablePe
case READ:
try (Scanner scanner = test_user_client.createScanner(tableName, Authorizations.EMPTY)) {
for (Entry<Key,Value> keyValueEntry : scanner) {
// empty
assertNotNull(keyValueEntry);
}
}
break;
Expand Down

0 comments on commit 2b0b971

Please sign in to comment.