Fix raw references to java.lang.Class
authorRobert Varga <rovarga@cisco.com>
Fri, 7 Nov 2014 18:13:29 +0000 (19:13 +0100)
committerRobert Varga <rovarga@cisco.com>
Sat, 8 Nov 2014 11:11:05 +0000 (12:11 +0100)
Fixes eclipse warnings just by adding either a wildcard, or the proper
type.

Change-Id: I35591747ae585f5af262f98c7592430d6a9268e2
Signed-off-by: Robert Varga <rovarga@cisco.com>
java/org/opendaylight/controller/cluster/datastore/node/utils/serialization/ValueType.java
java/org/opendaylight/controller/cluster/datastore/node/utils/stream/ValueTypes.java

index 6c884734e298a54dea541fe4973404365db41573..2007544b7edd96d3498d303e3ad0ffd8469ada36 100644 (file)
@@ -32,7 +32,7 @@ public enum ValueType {
     BIG_DECIMAL_TYPE,
     BINARY_TYPE;
 
-    private static Map<Class, ValueType> types = new HashMap<>();
+    private static Map<Class<?>, ValueType> types = new HashMap<>();
 
     static {
         types.put(String.class, STRING_TYPE);
index 6035e3c644e6f9c6d54e0219fcdad66037acd303..80fa527b4613e54d942aa14cc121c3cf234dd410 100644 (file)
@@ -31,7 +31,7 @@ public class ValueTypes {
     public static final byte BIG_INTEGER_TYPE = 10;
     public static final byte BIG_DECIMAL_TYPE = 11;
 
-    private static Map<Class, Byte> types = new HashMap<>();
+    private static Map<Class<?>, Byte> types = new HashMap<>();
 
     static {
         types.put(String.class, Byte.valueOf(STRING_TYPE));