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

dlmarion 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 f800880  Replace backslash literal with variable (#29)
f800880 is described below

commit f80088003bcb69101a99066f3aed3b9780a02033
Author: Dave Marion <dlmar...@apache.org>
AuthorDate: Thu Oct 26 16:36:08 2023 -0400

    Replace backslash literal with variable (#29)
---
 src/main/java/org/apache/accumulo/access/AccessEvaluatorImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/accumulo/access/AccessEvaluatorImpl.java 
b/src/main/java/org/apache/accumulo/access/AccessEvaluatorImpl.java
index eb25206..0bbc5e7 100644
--- a/src/main/java/org/apache/accumulo/access/AccessEvaluatorImpl.java
+++ b/src/main/java/org/apache/accumulo/access/AccessEvaluatorImpl.java
@@ -68,7 +68,7 @@ class AccessEvaluatorImpl implements AccessEvaluator {
       int pos = 0;
       for (int i = 0; i < auth.length(); i++) {
         byte b = auth.byteAt(i);
-        if (b == '\\') {
+        if (b == BACKSLASH) {
           i++;
           b = auth.byteAt(i);
           if (!isQuoteOrSlash(b)) {

Reply via email to