Skip to content

Commit d1690bd

Browse files
committed
Fix more checkstyle warnings.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@1439199 13f79535-47bb-0310-9956-ffa450edef68
1 parent 29fefd2 commit d1690bd

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public AmbiguousOptionException(String option, Collection<String> matchingOption
5151

5252
/**
5353
* Returns the options matching the partial name.
54+
* @return a collection of options matching the name
5455
*/
5556
public Collection<String> getMatchingOptions()
5657
{

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,14 @@ public CommandLine parse(Options options, String[] arguments, Properties propert
144144
throws ParseException
145145
{
146146
// clear out the data in options in case it's been used before (CLI-71)
147-
for (Option opt : options.helpOptions()) {
147+
for (Option opt : options.helpOptions())
148+
{
148149
opt.clearValues();
149150
}
150151

151152
// clear the data from the groups
152-
for (OptionGroup group : options.getOptionGroups()) {
153+
for (OptionGroup group : options.getOptionGroups())
154+
{
153155
group.setSelected(null);
154156
}
155157

0 commit comments

Comments
 (0)