Skip to content

Commit 4ee0d6c

Browse files
committed
Applying Oliver Heger's patch for CLI-121, changing a HashSet to a LinkedHashSet so we pass tests on JDK 1.6. This moves us to a JDK 1.4+ dependency, but I don't think that's an issue.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@629710 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7327648 commit 4ee0d6c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/java/org/apache/commons/cli2/builder/PatternBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
*/
1717
package org.apache.commons.cli2.builder;
1818

19-
import java.util.HashSet;
2019
import java.util.Iterator;
20+
import java.util.LinkedHashSet;
2121
import java.util.Set;
2222

2323
import org.apache.commons.cli2.Argument;
@@ -64,7 +64,7 @@ public PatternBuilder(
6464
this.abuilder = abuilder;
6565
}
6666

67-
private final Set options = new HashSet();
67+
private final Set options = new LinkedHashSet();
6868

6969
/**
7070
* Creates a new Option instance.

0 commit comments

Comments
 (0)