Skip to content

Commit 47c2a28

Browse files
committed
Use better Map API.
1 parent bf19d99 commit 47c2a28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public List<String> getMatchingOptions(String opt)
276276
final List<String> matchingOpts = new ArrayList<>();
277277

278278
// for a perfect match return the single option only
279-
if (longOpts.keySet().contains(opt))
279+
if (longOpts.containsKey(opt))
280280
{
281281
return Collections.singletonList(opt);
282282
}

0 commit comments

Comments
 (0)