NodeTypes is a utility class 03/14503/4
authorRobert Varga <rovarga@cisco.com>
Mon, 26 Jan 2015 16:10:44 +0000 (17:10 +0100)
committerRobert Varga <rovarga@cisco.com>
Wed, 28 Jan 2015 16:18:59 +0000 (17:18 +0100)
Utility classes need to be final and have a private constructor.

Change-Id: I4f7ad749415a068be324bfe23c79110b96c4ed10
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NodeTypes.java

index 3ff6efbb0577b28a5b6d90b5bbcb56da5216e83f..debf328dcdacba7152aa8562c6a0ed09fda3efb1 100644 (file)
@@ -7,11 +7,9 @@
  *  and is available at http://www.eclipse.org/legal/epl-v10.html
  *
  */
-
 package org.opendaylight.controller.cluster.datastore.node.utils.stream;
 
-public class NodeTypes {
-
+final class NodeTypes {
     public static final byte LEAF_NODE = 1;
     public static final byte LEAF_SET = 2;
     public static final byte LEAF_SET_ENTRY_NODE = 3;
@@ -26,4 +24,7 @@ public class NodeTypes {
     public static final byte ANY_XML_NODE = 12;
     public static final byte END_NODE = 13;
 
+    private NodeTypes() {
+        throw new UnsupportedOperationException("utility class");
+    }
 }