-
Type:
Bug
-
Status: Resolved
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 2.6.0
-
Fix Version/s: 2.9.0, 3.0.0-alpha4, 2.8.2
-
Labels:None
-
Hadoop Flags:Reviewed
@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; }