Do not instantiate Long/Short/Integer
[openflowplugin.git] / test-provider / src / main / java / org / opendaylight / openflowplugin / test / OpenflowpluginTableFeaturesTestCommandProvider.java
index 0add3c3b24fcb2037b210ab07ef157524a20e1b8..ca4b11f5142be10d5c3c4dd7baa6c6a037ac2925 100644 (file)
@@ -139,13 +139,13 @@ public class OpenflowpluginTableFeaturesTestCommandProvider implements CommandPr
 
 
             TableFeaturesBuilder tableFeature1 = new TableFeaturesBuilder();
-            tableFeature1.setTableId(new Short((short) 0));
+            tableFeature1.setTableId((short) 0);
             tableFeature1.setName("Table 0");
 
 
-            tableFeature1.setMetadataMatch((new BigInteger("10", 10)));
-            tableFeature1.setMetadataWrite((new BigInteger("10", 10)));
-            tableFeature1.setMaxEntries(new Long(10000));
+            tableFeature1.setMetadataMatch(BigInteger.valueOf(10));
+            tableFeature1.setMetadataWrite(BigInteger.valueOf(10));
+            tableFeature1.setMaxEntries(10000L);
 
             tableFeature1.setConfig(new TableConfig(false));