diff --git a/consensusj-jsonrpc-cli/src/main/java/org/consensusj/jsonrpc/cli/BaseJsonRpcTool.java b/consensusj-jsonrpc-cli/src/main/java/org/consensusj/jsonrpc/cli/BaseJsonRpcTool.java index d894c0e8b..efb68569d 100644 --- a/consensusj-jsonrpc-cli/src/main/java/org/consensusj/jsonrpc/cli/BaseJsonRpcTool.java +++ b/consensusj-jsonrpc-cli/src/main/java/org/consensusj/jsonrpc/cli/BaseJsonRpcTool.java @@ -73,7 +73,7 @@ public void run(Call call) { public void run(CommonsCLICall call) { List args = call.line.getArgList(); - if (args.size() == 0) { + if (args.isEmpty()) { printError(call, "jsonrpc method required"); printHelp(call, usage); throw new ToolException(1, "jsonrpc method required");