CURATOR-505 ctor should be private
authorrandgalt <randgalt@apache.org>
Thu, 7 Feb 2019 20:46:02 +0000 (15:46 -0500)
committerrandgalt <randgalt@apache.org>
Thu, 7 Feb 2019 20:46:02 +0000 (15:46 -0500)
curator-framework/src/main/java/org/apache/curator/framework/listen/StandardListenerManager.java

index 8b60ac1..8d239ca 100644 (file)
@@ -41,11 +41,6 @@ public class StandardListenerManager<T> implements ListenerManager<T, T>
         return new StandardListenerManager<>(container);
     }
 
-    public StandardListenerManager(ListenerManager<T, T> container)
-    {
-        this.container = Objects.requireNonNull(container, "container cannot be null");
-    }
-
     @Override
     public void addListener(T listener)
     {
@@ -81,4 +76,9 @@ public class StandardListenerManager<T> implements ListenerManager<T, T>
     {
         container.forEach(function);
     }
+
+    private StandardListenerManager(ListenerManager<T, T> container)
+    {
+        this.container = container;
+    }
 }