Fix raw type warnings in openflowjava-extension-eric test 41/92341/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 31 Aug 2020 12:23:44 +0000 (14:23 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 31 Aug 2020 12:23:44 +0000 (14:23 +0200)
We should be using proper type parameters to retain type safety.

Change-Id: I48c1483135c0fa7674a65498d6e10960ee31bb72
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
extension/openflowjava-extension-eric/src/test/java/org/opendaylight/openflowjava/eric/EricExtensionCodecRegistratorImplTest.java

index fd0c949a6e4222e4a07c6667cd38f7e13ee934d5..38bf6eae34cf90d2c6741b68c653aa110aa13534 100644 (file)
@@ -5,7 +5,6 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.openflowjava.eric;
 
 import java.util.LinkedList;
@@ -34,8 +33,8 @@ public class EricExtensionCodecRegistratorImplTest {
     public static final byte VERSION2 = EncodeConstants.OF13_VERSION_ID;
 
     private EricExtensionCodecRegistratorImpl ericExtensionCodecRegistrator;
-    private List<SwitchConnectionProvider> providers = new LinkedList<>();
-    private MatchEntrySerializerKey matchSerializerKey;
+    private final List<SwitchConnectionProvider> providers = new LinkedList<>();
+    private MatchEntrySerializerKey<EricExpClass, MatchField> matchSerializerKey;
     private MatchEntryDeserializerKey matchDeserializerKey;
 
     @Mock
@@ -48,7 +47,7 @@ public class EricExtensionCodecRegistratorImplTest {
     @Before
     public void setUp() {
         providers.add(provider);
-        matchSerializerKey = new MatchEntrySerializerKey(VERSION, EricExpClass.class, MatchField.class);
+        matchSerializerKey = new MatchEntrySerializerKey<>(VERSION, EricExpClass.class, MatchField.class);
         //OxmClass 1, OxmField 2
         matchDeserializerKey = new MatchEntryDeserializerKey(VERSION, 1, 2);