* The singleton constructor
*/
private TmfEventTypeManager() {
- fEventTypes = new HashMap<String, HashMap<String, ITmfEventType>>();
+ fEventTypes = new HashMap<>();
}
/**
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);