We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e01bba commit 4d49ed3Copy full SHA for 4d49ed3
1 file changed
src/test/java/org/apache/commons/cli/OptionsTest.java
@@ -84,15 +84,15 @@ public void testHelpOptions()
84
options.addOption(bothA);
85
options.addOption(bothB);
86
87
- Collection allOptions = new ArrayList();
+ Collection<Option> allOptions = new ArrayList<Option>();
88
allOptions.add(longOnly1);
89
allOptions.add(longOnly2);
90
allOptions.add(shortOnly1);
91
allOptions.add(shortOnly2);
92
allOptions.add(bothA);
93
allOptions.add(bothB);
94
95
- Collection helpOptions = options.helpOptions();
+ Collection<Option> helpOptions = options.helpOptions();
96
97
assertTrue("Everything in all should be in help", helpOptions.containsAll(allOptions));
98
assertTrue("Everything in help should be in all", allOptions.containsAll(helpOptions));
0 commit comments