You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/05/24 15:51:15 UTC
[commons-cli] branch master updated: Use better Map API.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-cli.git
The following commit(s) were added to refs/heads/master by this push:
new 47c2a28 Use better Map API.
47c2a28 is described below
commit 47c2a289ecedcdb532a7f393019e3e7f9621499d
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun May 24 11:51:11 2020 -0400
Use better Map API.
---
src/main/java/org/apache/commons/cli/Options.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/cli/Options.java b/src/main/java/org/apache/commons/cli/Options.java
index 82e98df..1661f46 100644
--- a/src/main/java/org/apache/commons/cli/Options.java
+++ b/src/main/java/org/apache/commons/cli/Options.java
@@ -276,7 +276,7 @@ public class Options implements Serializable
final List<String> matchingOpts = new ArrayList<>();
// for a perfect match return the single option only
- if (longOpts.keySet().contains(opt))
+ if (longOpts.containsKey(opt))
{
return Collections.singletonList(opt);
}