Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
2.6.0
-
None
-
Reviewed
Description
@Override public int run(String argv[]) throws Exception { LinkedList<String> args = new LinkedList<String>(); …… if (args.size() < 0) { System.err.println("You must specify an operation."); return 1; } …… }
From the code above, the args is a linklist obejct, so it cannot be less than zero.meaning that code below is wrong
if (args.size() < 0) { System.err.println("You must specify an operation."); return 1; }