diff --git a/src/clean/code/chapter14/solution/Args.java b/src/clean/code/chapter14/solution/Args.java index 49d50d3..1a82ade 100644 --- a/src/clean/code/chapter14/solution/Args.java +++ b/src/clean/code/chapter14/solution/Args.java @@ -49,7 +49,7 @@ private void validateSchemaElementId(char elementId) throws ArgsException { } private void parseArgumentStrings(List argsList) throws ArgsException { - if (argsList.size() > 0) { + for (currentArgument = argsList.listIterator(); currentArgument.hasNext();) { currentArgument = argsList.listIterator(); String argString = currentArgument.next(); if (argString.startsWith("-")) {