Skip to content

Commit 494c45e

Browse files
committed
Whitespace
1 parent 656dfc9 commit 494c45e

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/main/java/org/apache/commons/cli/OptionGroup.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
2727
* A group of mutually exclusive options.
2828
*/
2929
public class OptionGroup implements Serializable {
30+
3031
/** The serial version UID. */
3132
private static final long serialVersionUID = 1L;
3233

@@ -49,7 +50,6 @@ public OptionGroup addOption(final Option option) {
4950
// key - option name
5051
// value - the option
5152
optionMap.put(option.getKey(), option);
52-
5353
return this;
5454
}
5555

@@ -104,7 +104,6 @@ public void setSelected(final Option option) throws AlreadySelectedException {
104104
selected = null;
105105
return;
106106
}
107-
108107
// if no option has already been selected or the
109108
// same option is being reselected then set the
110109
// selected member variable
@@ -122,14 +121,10 @@ public void setSelected(final Option option) throws AlreadySelectedException {
122121
@Override
123122
public String toString() {
124123
final StringBuilder buff = new StringBuilder();
125-
126124
final Iterator<Option> iter = getOptions().iterator();
127-
128125
buff.append("[");
129-
130126
while (iter.hasNext()) {
131127
final Option option = iter.next();
132-
133128
if (option.getOpt() != null) {
134129
buff.append("-");
135130
buff.append(option.getOpt());
@@ -147,9 +142,7 @@ public String toString() {
147142
buff.append(", ");
148143
}
149144
}
150-
151145
buff.append("]");
152-
153146
return buff.toString();
154147
}
155148
}

0 commit comments

Comments
 (0)