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

Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
This commit is contained in:
litao 2021-07-01 21:14:10 +08:00 committed by GitHub
parent 56c7ada7a5
commit 52b9319e57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -199,7 +199,7 @@ public int run(String[] args) throws Exception {
"Invalid or extra Arguments: " + Arrays "Invalid or extra Arguments: " + Arrays
.toString(Arrays.copyOfRange(cmdArgs, 2, cmdArgs.length))); .toString(Arrays.copyOfRange(cmdArgs, 2, cmdArgs.length)));
} }
return dispatch(cmd, opts); return dispatch(cmd);
} }
/** /**
@ -469,10 +469,8 @@ public Command getCurrentCommand() {
* Dispatches calls to the right command Handler classes. * Dispatches calls to the right command Handler classes.
* *
* @param cmd - CommandLine * @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 { throws Exception {
Command dbCmd = null; Command dbCmd = null;
try { try {