Bug 2245 - Fixed 'Hide Utility Class Constructor'
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / util / InstructionConstants.java
index 8e0ae6ec69e74f867e2a0cb554d8471a308b61d9..2476c4e90a41e0f35d802506c73c552db46c7aa3 100644 (file)
@@ -12,7 +12,7 @@ package org.opendaylight.openflowjava.protocol.impl.util;
  * @author michal.polkorab\r
  *\r
  */\r
-public class InstructionConstants {\r
+public final class InstructionConstants {\r
 \r
     /** Openflow v1.3 OFPIT_GOTO_TABLE code */\r
     public static final byte GOTO_TABLE_TYPE = 1;\r
@@ -41,4 +41,8 @@ public class InstructionConstants {
     public static final byte WRITE_METADATA_LENGTH = 24;\r
     /** Openflow v1.3 header length (only type and length fields) */\r
     public static final byte INSTRUCTION_IDS_LENGTH = 4;\r
+\r
+    private InstructionConstants() {\r
+        throw new UnsupportedOperationException("Utility class shouldn't be instantiated");\r
+    }\r
 }\r