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-access.git


The following commit(s) were added to refs/heads/main by this push:
     new c48e028  fixes code example in javadoc (#100)
c48e028 is described below

commit c48e0283007e727a84d717c4ec40652639a32a0b
Author: Keith Turner <[email protected]>
AuthorDate: Wed Jan 14 08:04:19 2026 -0800

    fixes code example in javadoc (#100)
---
 core/src/main/java/org/apache/accumulo/access/Access.java | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/core/src/main/java/org/apache/accumulo/access/Access.java 
b/core/src/main/java/org/apache/accumulo/access/Access.java
index 4f35f23..99598be 100644
--- a/core/src/main/java/org/apache/accumulo/access/Access.java
+++ b/core/src/main/java/org/apache/accumulo/access/Access.java
@@ -173,15 +173,14 @@ public interface Access {
    *
    * <pre>
    *     {@code
-   * AccumuloAccess accumuloAccess = ...;
+   * Access access = Access.builder().build();
    * Collection<Authorizations> authSets =
-   *     List.of(Authorizations.of("A", "B"), Authorizations.of("C", "D"));
-   * var evaluator = accumuloAccess.newEvaluator(authSets);
+   *     Stream.of(Set.of("A", "B"), Set.of("C", 
"D")).map(access::newAuthorizations).toList();
+   * var evaluator = access.newEvaluator(authSets);
    *
    * System.out.println(evaluator.canAccess("A"));
    * System.out.println(evaluator.canAccess("A|D"));
    * System.out.println(evaluator.canAccess("A&D"));
-   *
    * }
    * </pre>
    *

Reply via email to