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



##########
File path: 
core/src/main/java/org/apache/accumulo/fate/zookeeper/ZooQueueLock.java
##########
@@ -39,10 +39,23 @@
   private static final String PREFIX = "flock#";
 
   private ZooReaderWriter zoo;
-  private String path;
+  private FateLockPath path;
   private boolean ephemeral;
 
-  public ZooQueueLock(ZooReaderWriter zrw, String path, boolean ephemeral) {
+  public static class FateLockPath {
+    private final String path;
+
+    public FateLockPath(String path) {
+      this.path = path;

Review comment:
       ```suggestion
         this.path = Objects.requireNonNull(path);
   ```




----------------------------------------------------------------
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