You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by mm...@apache.org on 2022/06/15 13:38:05 UTC

[accumulo] branch main updated: Make auths classes in Authorizations (#2777)

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

mmiller 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 418eee8fa0 Make auths classes in Authorizations (#2777)
418eee8fa0 is described below

commit 418eee8fa0abed50f30cb6c97184964f924d2c67
Author: Mike Miller <mm...@apache.org>
AuthorDate: Wed Jun 15 13:37:59 2022 +0000

    Make auths classes in Authorizations (#2777)
    
    * Change private member types from interfaces to classes to get rid of Java 18 warnings
    * For #2777
---
 .../main/java/org/apache/accumulo/core/security/Authorizations.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 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 1df129b9a8..37e42eb1aa 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
@@ -44,8 +44,8 @@ public class Authorizations implements Iterable<byte[]>, Serializable, Authoriza
 
   private static final long serialVersionUID = 1L;
 
-  private Set<ByteSequence> auths = new HashSet<>();
-  private List<byte[]> authsList = new ArrayList<>(); // sorted order
+  private final HashSet<ByteSequence> auths = new HashSet<>();
+  private final ArrayList<byte[]> authsList = new ArrayList<>(); // sorted order
 
   /**
    * An empty set of authorizations.