You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2020/11/23 23:37:15 UTC
[httpcomponents-core] 01/06: Make better use of Map APIs.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch 4.4.x
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git
commit 6fc0761dd29190fcccb1830d2f0a43948ff4d0b0
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Nov 23 11:32:17 2020 -0500
Make better use of Map APIs.
---
httpcore/src/test/java/org/apache/http/ssl/TestSSLContextBuilder.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/httpcore/src/test/java/org/apache/http/ssl/TestSSLContextBuilder.java b/httpcore/src/test/java/org/apache/http/ssl/TestSSLContextBuilder.java
index 3f00b21..95c477b 100644
--- a/httpcore/src/test/java/org/apache/http/ssl/TestSSLContextBuilder.java
+++ b/httpcore/src/test/java/org/apache/http/ssl/TestSSLContextBuilder.java
@@ -562,7 +562,7 @@ public class TestSSLContextBuilder {
final PrivateKeyStrategy privateKeyStrategy = new PrivateKeyStrategy() {
@Override
public String chooseAlias(final Map<String, PrivateKeyDetails> aliases, final Socket socket) {
- return aliases.keySet().contains("client2") ? "client2" : null;
+ return aliases.containsKey("client2") ? "client2" : null;
}
};