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:47:39 UTC

[httpcomponents-core] 04/07: Make better use of Map APIs.

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/httpcomponents-core.git

commit e78efb66c2255fa6640f3115bb5a3d35519bd89d
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Nov 23 11:36:22 2020 -0500

    Make better use of Map APIs.
---
 .../src/test/java/org/apache/hc/core5/ssl/TestSSLContextBuilder.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/httpcore5/src/test/java/org/apache/hc/core5/ssl/TestSSLContextBuilder.java b/httpcore5/src/test/java/org/apache/hc/core5/ssl/TestSSLContextBuilder.java
index 5ce874d..bc36248 100644
--- a/httpcore5/src/test/java/org/apache/hc/core5/ssl/TestSSLContextBuilder.java
+++ b/httpcore5/src/test/java/org/apache/hc/core5/ssl/TestSSLContextBuilder.java
@@ -545,7 +545,7 @@ public class TestSSLContextBuilder {
             @Override
             public String chooseAlias(final Map<String, PrivateKeyDetails> aliases,
                             final SSLParameters sslParameters) {
-                return aliases.keySet().contains("client2") ? "client2" : null;
+                return aliases.containsKey("client2") ? "client2" : null;
             }
         };