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 73a0cd7 fixes javadoc and adds tests
73a0cd7 is described below
commit 73a0cd7a5aa502da94d726cef08069054a4cab7d
Author: Keith Turner <[email protected]>
AuthorDate: Sat Sep 9 17:30:14 2023 -0400
fixes javadoc and adds tests
---
src/main/java/org/apache/accumulo/access/AccessEvaluator.java | 2 +-
src/test/resources/testdata.json | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/accumulo/access/AccessEvaluator.java
b/src/main/java/org/apache/accumulo/access/AccessEvaluator.java
index def37f4..576ad5b 100644
--- a/src/main/java/org/apache/accumulo/access/AccessEvaluator.java
+++ b/src/main/java/org/apache/accumulo/access/AccessEvaluator.java
@@ -31,7 +31,7 @@ import java.util.List;
*
* <pre>
* {@code
- * var evaluator = VisibilityArbiter.builder().authorizations("ALPHA",
"OMEGA").build();
+ * var evaluator = AccessEvaluator.builder().authorizations("ALPHA",
"OMEGA").build();
*
* System.out.println(evaluator.canAccess("ALPHA&BETA"));
* System.out.println(evaluator.canAccess("(ALPHA|BETA)&(OMEGA|EPSILON)"));
diff --git a/src/test/resources/testdata.json b/src/test/resources/testdata.json
index 9539675..e984bf9 100644
--- a/src/test/resources/testdata.json
+++ b/src/test/resources/testdata.json
@@ -187,7 +187,9 @@
"|&",
"a|b&",
"(|a)",
- "&a&b(a&b)"
+ "&a&b(a&b)",
+ "#A",
+ "#&"
]
}
]