Remove use of Byte(byte) constructor 20/91420/2
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 18 Jul 2020 14:22:05 +0000 (16:22 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 18 Jul 2020 19:24:45 +0000 (21:24 +0200)
This constructor is deprecated for removal, do not use it.

Change-Id: Ibda3dc2c696289f9a903516f0e03063b2b9a9c62
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
extension/openflowjava-extension-nicira/src/test/java/org/opendaylight/openflowjava/nx/codec/action/ResubmitCodecTest.java

index 4f47d65b67d870c894d1baf7536d4bb2c969fdc7..9f7e0e9762a22977fe6f438e29ef9a62f289d508 100644 (file)
@@ -61,8 +61,7 @@ public class ResubmitCodecTest {
      */
     @Test
     public void getSubTypeTest2() {
-        Byte table = new Byte((byte)1);
-        action = createAction(null, table);
+        action = createAction(null, (byte)1);
         ActionResubmit actionResubmit = (ActionResubmit) action.getActionChoice();
 
         byte result = resubmitCodec.getSubType(actionResubmit);