This is an automated email from the ASF dual-hosted git repository.

ctubbsii pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/main by this push:
     new c7b1d85  Fix warnings (unused imports, deprecation)
c7b1d85 is described below

commit c7b1d857eba85e4c246dd5e8350bfb6f2419757d
Author: Christopher Tubbs <ctubb...@apache.org>
AuthorDate: Wed Feb 10 15:25:30 2021 -0500

    Fix warnings (unused imports, deprecation)
    
    Fix a few warnings for unused imports and unsuppressed warnings for
    deprecated class references, left behind from previous commits.
---
 core/src/main/java/org/apache/accumulo/fate/zookeeper/ZooUtil.java  | 1 -
 .../org/apache/accumulo/server/fs/VolumeChooserEnvironmentImpl.java | 2 +-
 .../java/org/apache/accumulo/shell/commands/HistoryCommand.java     | 1 -
 .../main/java/org/apache/accumulo/test/start/KeywordStartIT.java    | 6 ++----
 4 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/core/src/main/java/org/apache/accumulo/fate/zookeeper/ZooUtil.java 
b/core/src/main/java/org/apache/accumulo/fate/zookeeper/ZooUtil.java
index d416cbc..80c46e9 100644
--- a/core/src/main/java/org/apache/accumulo/fate/zookeeper/ZooUtil.java
+++ b/core/src/main/java/org/apache/accumulo/fate/zookeeper/ZooUtil.java
@@ -23,7 +23,6 @@ import java.util.ArrayList;
 import java.util.List;
 
 import org.apache.accumulo.core.Constants;
-import org.apache.accumulo.fate.zookeeper.ZooUtil.NodeMissingPolicy;
 import org.apache.zookeeper.KeeperException;
 import org.apache.zookeeper.KeeperException.Code;
 import org.apache.zookeeper.ZooDefs.Ids;
diff --git 
a/server/base/src/main/java/org/apache/accumulo/server/fs/VolumeChooserEnvironmentImpl.java
 
b/server/base/src/main/java/org/apache/accumulo/server/fs/VolumeChooserEnvironmentImpl.java
index ccfd2df..17ae3ec 100644
--- 
a/server/base/src/main/java/org/apache/accumulo/server/fs/VolumeChooserEnvironmentImpl.java
+++ 
b/server/base/src/main/java/org/apache/accumulo/server/fs/VolumeChooserEnvironmentImpl.java
@@ -32,7 +32,7 @@ import org.apache.hadoop.io.Text;
 /**
  * Volume chooser authors should avoid using this class when testing their 
volume chooser. The
  * constructors for this class may change at any time. For testing purposes 
mocking the interface
- * {@link VolumeChooserEnvironment} should result in more stable code over 
time than using this
+ * {@code VolumeChooserEnvironment} should result in more stable code over 
time than using this
  * class.
  */
 @SuppressWarnings("deprecation")
diff --git 
a/shell/src/main/java/org/apache/accumulo/shell/commands/HistoryCommand.java 
b/shell/src/main/java/org/apache/accumulo/shell/commands/HistoryCommand.java
index 3886092..2f34879 100644
--- a/shell/src/main/java/org/apache/accumulo/shell/commands/HistoryCommand.java
+++ b/shell/src/main/java/org/apache/accumulo/shell/commands/HistoryCommand.java
@@ -27,7 +27,6 @@ import org.apache.commons.cli.CommandLine;
 import org.apache.commons.cli.Option;
 import org.apache.commons.cli.Options;
 import org.jline.reader.History;
-import org.jline.reader.History.Entry;
 
 import com.google.common.collect.Iterators;
 
diff --git 
a/test/src/main/java/org/apache/accumulo/test/start/KeywordStartIT.java 
b/test/src/main/java/org/apache/accumulo/test/start/KeywordStartIT.java
index a0a1a98..87e8d31 100644
--- a/test/src/main/java/org/apache/accumulo/test/start/KeywordStartIT.java
+++ b/test/src/main/java/org/apache/accumulo/test/start/KeywordStartIT.java
@@ -41,8 +41,6 @@ import org.apache.accumulo.core.util.Version;
 import org.apache.accumulo.gc.GCExecutable;
 import org.apache.accumulo.gc.SimpleGarbageCollector;
 import org.apache.accumulo.manager.ManagerExecutable;
-import org.apache.accumulo.manager.MasterExecutable;
-import org.apache.accumulo.master.Master;
 import org.apache.accumulo.minicluster.MiniAccumuloRunner;
 import org.apache.accumulo.miniclusterImpl.MiniClusterExecutable;
 import org.apache.accumulo.monitor.Monitor;
@@ -113,7 +111,7 @@ public class KeywordStartIT {
     expectSet.put("init", Initialize.class);
     expectSet.put("login-info", LoginProperties.class);
     expectSet.put("manager", ManagerExecutable.class);
-    expectSet.put("master", MasterExecutable.class);
+    expectSet.put("master", 
org.apache.accumulo.manager.MasterExecutable.class);
     expectSet.put("minicluster", MiniClusterExecutable.class);
     expectSet.put("monitor", MonitorExecutable.class);
     expectSet.put("rfile-info", PrintInfo.class);
@@ -164,7 +162,7 @@ public class KeywordStartIT {
     expectSet.add(Info.class);
     expectSet.add(Initialize.class);
     expectSet.add(LoginProperties.class);
-    expectSet.add(Master.class);
+    expectSet.add(org.apache.accumulo.master.Master.class);
     expectSet.add(MiniAccumuloRunner.class);
     expectSet.add(Monitor.class);
     expectSet.add(PrintInfo.class);

Reply via email to