Expose streams with all supported encodings
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / nb / rfc8040 / streams / Subscribers.java
index 32f0a8e7fe1d80368ee047fca039e15873b2d3e3..db13ca7e4a75b8101aa5e6e72f36b547e932419a 100644 (file)
@@ -27,8 +27,12 @@ import org.slf4j.LoggerFactory;
  * @param <T> event type
  */
 abstract sealed class Subscribers<T> {
-    private static final class Empty<T> extends Subscribers<T> {
-        static final @NonNull Empty<?> INSTANCE = new Empty<>();
+    static final class Empty<T> extends Subscribers<T> {
+        private static final @NonNull Empty<?> INSTANCE = new Empty<>();
+
+        private Empty() {
+            // Hidden on purpose
+        }
 
         @Override
         Subscribers<T> add(final Subscriber<T> toAdd) {