File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,9 +15,11 @@ public Args(String schema, String[] args) throws ArgsException {
1515 }
1616
1717 private void parseSchema (String schema ) throws ArgsException {
18- for (String element : schema .split ("," ))
19- if (!element .isEmpty ())
18+ for (String element : schema .split ("," )) {
19+ if (!element .isEmpty ()) {
2020 parseSchemaElement (element .trim ());
21+ }
22+ }
2123 }
2224
2325 private void parseSchemaElement (String element ) throws ArgsException {
@@ -41,8 +43,9 @@ else if (elementTail.equals("&"))
4143 }
4244
4345 private void validateSchemaElementId (char elementId ) throws ArgsException {
44- if (!Character .isLetter (elementId ))
46+ if (!Character .isLetter (elementId )) {
4547 throw new ArgsException (INVALID_ARGUMENT_NAME , elementId , null );
48+ }
4649 }
4750
4851 private void parseArgumentStrings (List <String > argsList ) throws ArgsException {
You can’t perform that action at this time.
0 commit comments