This is an automated email from the ASF dual-hosted git repository. kturner pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/main by this push: new ca12df6c4f uses new accumulo-access API for empty authorization (#4739) ca12df6c4f is described below commit ca12df6c4fa357f1204e7b52f8623c7bc1c9e55e Author: Keith Turner <ktur...@apache.org> AuthorDate: Sat Jul 20 13:08:38 2024 -0400 uses new accumulo-access API for empty authorization (#4739) --- .../main/java/org/apache/accumulo/core/security/Authorizations.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/main/java/org/apache/accumulo/core/security/Authorizations.java b/core/src/main/java/org/apache/accumulo/core/security/Authorizations.java index 363a0586f8..380a183679 100644 --- a/core/src/main/java/org/apache/accumulo/core/security/Authorizations.java +++ b/core/src/main/java/org/apache/accumulo/core/security/Authorizations.java @@ -386,9 +386,6 @@ public class Authorizations implements Iterable<byte[]>, Serializable, Authoriza return sb.toString(); } - private static final org.apache.accumulo.access.Authorizations EMPTY_ACCESS_AUTH = - org.apache.accumulo.access.Authorizations.of(Set.of()); - /** * Converts to an Accumulo Access Authorizations object. * @@ -396,7 +393,7 @@ public class Authorizations implements Iterable<byte[]>, Serializable, Authoriza */ public org.apache.accumulo.access.Authorizations toAccessAuthorizations() { if (auths.isEmpty()) { - return EMPTY_ACCESS_AUTH; + return org.apache.accumulo.access.Authorizations.of(); } else { Set<String> auths = new HashSet<>(authsList.size()); for (var auth : authsList) {