eolivelli commented on a change in pull request #9740:
URL: https://github.com/apache/pulsar/pull/9740#discussion_r584614913



##########
File path: 
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
##########
@@ -323,7 +323,7 @@ private void grantPermissions(String topicUri, String role, 
Set<AuthAction> acti
         try {
             namespaceResources().set(path(POLICIES, namespaceName.toString()), 
(policies) -> {
                 if 
(!policies.auth_policies.destination_auth.containsKey(topicUri)) {
-                    policies.auth_policies.destination_auth.put(topicUri, new 
TreeMap<String, Set<AuthAction>>());
+                    policies.auth_policies.destination_auth.put(topicUri, new 
HashMap<>());

Review comment:
       why don't we use Maps.newHashMap ?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to