tmf: Switch tmf.core to Java 7 + fix warnings
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / event / TmfEventTypeManager.java
index f89fc5dd82a9d65ef0aec99341bbd32f3a2f7e72..b2c3f8e0f6d03cca6e0f3f3047bfa2d58e9bd4d7 100644 (file)
@@ -44,7 +44,7 @@ public final class TmfEventTypeManager {
      * The singleton constructor
      */
     private TmfEventTypeManager() {
-        fEventTypes = new HashMap<String, HashMap<String, ITmfEventType>>();
+        fEventTypes = new HashMap<>();
     }
 
     /**
@@ -70,7 +70,7 @@ public final class TmfEventTypeManager {
     public synchronized void add(final String context, final ITmfEventType type) {
         HashMap<String, ITmfEventType> types = fEventTypes.get(context);
         if (types == null) {
-            types = new HashMap<String, ITmfEventType>();
+            types = new HashMap<>();
         }
         types.put(type.getName(), type);
         fEventTypes.put(context, types);
This page took 0.036675 seconds and 5 git commands to generate.