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

kturner pushed a commit to branch 3.1
in repository https://gitbox.apache.org/repos/asf/accumulo.git

commit 08e58c02aae0bcd56943fbcedb9c0e21d0eb50d9
Author: Keith Turner <ktur...@apache.org>
AuthorDate: Tue Feb 4 10:52:01 2025 -0500

    use new accumulo-access APIs (#5300)
---
 .../client/summary/summarizers/AuthorizationSummarizer.java    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/core/src/main/java/org/apache/accumulo/core/client/summary/summarizers/AuthorizationSummarizer.java
 
b/core/src/main/java/org/apache/accumulo/core/client/summary/summarizers/AuthorizationSummarizer.java
index a0045ba592..ff60606a78 100644
--- 
a/core/src/main/java/org/apache/accumulo/core/client/summary/summarizers/AuthorizationSummarizer.java
+++ 
b/core/src/main/java/org/apache/accumulo/core/client/summary/summarizers/AuthorizationSummarizer.java
@@ -81,11 +81,11 @@ public class AuthorizationSummarizer extends 
CountingSummarizer<ByteSequence> {
       if (vis.length() > 0) {
         Set<ByteSequence> auths = cache.get(vis);
         if (auths == null) {
-          auths = new HashSet<>();
-          for (String auth : 
AccessExpression.of(vis.toArray()).getAuthorizations().asSet()) {
-            auths.add(new ArrayByteSequence(auth));
-          }
-          cache.put(new ArrayByteSequence(vis), auths);
+          var newAuths = new HashSet<ByteSequence>();
+          AccessExpression.findAuthorizations(vis.toArray(),
+              auth -> newAuths.add(new ArrayByteSequence(auth)));
+          cache.put(new ArrayByteSequence(vis), newAuths);
+          auths = newAuths;
         }
 
         for (ByteSequence auth : auths) {

Reply via email to