Skip to content

Commit dd8f1c8

Browse files
committed
options is a collection of Option, so the iterator can be safely typed
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@1095616 13f79535-47bb-0310-9956-ffa450edef68
1 parent ccae69f commit dd8f1c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ protected void addOption(Option opt)
359359
* @return an <code>Iterator</code> over the processed {@link Option}
360360
* members of this {@link CommandLine}
361361
*/
362-
public Iterator iterator()
362+
public Iterator<Option> iterator()
363363
{
364364
return options.iterator();
365365
}

0 commit comments

Comments
 (0)