ctubbsii commented on a change in pull request #1819:
URL: https://github.com/apache/accumulo/pull/1819#discussion_r533670396



##########
File path: 
server/base/src/main/java/org/apache/accumulo/server/conf/ZooCachePropertyAccessor.java
##########
@@ -103,6 +103,20 @@ String get(Property property, String path, 
AccumuloConfiguration parent) {
     String key = property.getKey();
     String value = get(path + "/" + key);
 
+    return checkValue(property, parent, key, value);
+  }
+
+  private String get(String path) {
+    byte[] v = propCache.get(path);
+    if (v != null) {
+      return new String(v, UTF_8);
+    } else {
+      return null;
+    }

Review comment:
       ```suggestion
       return v == null ? null : new String(v, UTF_8);
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to