Browse Source

HDFS-16104. Remove unused parameter and fix java doc for DiskBalancerCLI (#3160). Contributed by tomscut.

Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
litao 3 năm trước cách đây
mục cha
commit
52b9319e57

+ 2 - 4
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DiskBalancerCLI.java

@@ -199,7 +199,7 @@ public class DiskBalancerCLI extends Configured implements Tool {
           "Invalid or extra Arguments: " + Arrays
               .toString(Arrays.copyOfRange(cmdArgs, 2, cmdArgs.length)));
     }
-    return dispatch(cmd, opts);
+    return dispatch(cmd);
   }
 
   /**
@@ -469,10 +469,8 @@ public class DiskBalancerCLI extends Configured implements Tool {
    * Dispatches calls to the right command Handler classes.
    *
    * @param cmd  - CommandLine
-   * @param opts options of command line
-   * @param out  the output stream used for printing
    */
-  private int dispatch(CommandLine cmd, Options opts)
+  private int dispatch(CommandLine cmd)
       throws Exception {
     Command dbCmd = null;
     try {