You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by pe...@apache.org on 2022/09/30 05:57:20 UTC

[pulsar] branch branch-2.10 updated: [branch-2.10] Fix JDK compatibility issues. (#17904)

This is an automated email from the ASF dual-hosted git repository.

penghui pushed a commit to branch branch-2.10
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/branch-2.10 by this push:
     new a9959723738 [branch-2.10] Fix JDK compatibility issues. (#17904)
a9959723738 is described below

commit a9959723738fdde4a5cffa84664c87cab47eabad
Author: Qiang Zhao <ma...@apache.org>
AuthorDate: Fri Sep 30 13:57:14 2022 +0800

    [branch-2.10] Fix JDK compatibility issues. (#17904)
---
 .../java/org/apache/pulsar/proxy/server/ProxyRefreshAuthTest.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pulsar-proxy/src/test/java/org/apache/pulsar/proxy/server/ProxyRefreshAuthTest.java b/pulsar-proxy/src/test/java/org/apache/pulsar/proxy/server/ProxyRefreshAuthTest.java
index 9ccb067adbf..907865d76c5 100644
--- a/pulsar-proxy/src/test/java/org/apache/pulsar/proxy/server/ProxyRefreshAuthTest.java
+++ b/pulsar-proxy/src/test/java/org/apache/pulsar/proxy/server/ProxyRefreshAuthTest.java
@@ -78,7 +78,7 @@ public class ProxyRefreshAuthTest extends ProducerConsumerBase {
         superUserRoles.add("superUser");
         conf.setSuperUserRoles(superUserRoles);
 
-        conf.setAuthenticationProviders(Set.of(AuthenticationProviderToken.class.getName()));
+        conf.setAuthenticationProviders(Collections.singleton(AuthenticationProviderToken.class.getName()));
         Properties properties = new Properties();
         properties.setProperty("tokenSecretKey", AuthTokenUtils.encodeKeyBase64(SECRET_KEY));
         conf.setProperties(properties);
@@ -118,7 +118,7 @@ public class ProxyRefreshAuthTest extends ProducerConsumerBase {
         proxyConfig.setBrokerClientAuthenticationPlugin(AuthenticationToken.class.getName());
         proxyConfig.setBrokerClientAuthenticationParameters(
                 AuthTokenUtils.createToken(SECRET_KEY, "Proxy", Optional.empty()));
-        proxyConfig.setAuthenticationProviders(Set.of(AuthenticationProviderToken.class.getName()));
+        proxyConfig.setAuthenticationProviders(Collections.singleton(AuthenticationProviderToken.class.getName()));
         Properties properties = new Properties();
         properties.setProperty("tokenSecretKey", AuthTokenUtils.encodeKeyBase64(SECRET_KEY));
         proxyConfig.setProperties(properties);