Index: applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/OhePlugin.java
===================================================================
--- applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/OhePlugin.java	(revision 30736)
+++ applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/OhePlugin.java	(revision 30737)
@@ -121,6 +121,6 @@
             // copied from
             // org.openstreetmap.josm.gui.dialogs.properties.PropertiesDialog[rev4079][line802]
-            Map<String, Integer> keyCount = new HashMap<String, Integer>();
-            Map<String, Map<String, Integer>> valueCount = new TreeMap<String, Map<String, Integer>>();
+            Map<String, Integer> keyCount = new HashMap<>();
+            Map<String, Map<String, Integer>> valueCount = new TreeMap<>();
             for (OsmPrimitive osm : selection) {
                 for (String key : osm.keySet()) {
@@ -131,5 +131,5 @@
                         v.put(value, v.containsKey(value) ? v.get(value) + 1 : 1);
                     } else {
-                        TreeMap<String, Integer> v = new TreeMap<String, Integer>();
+                        TreeMap<String, Integer> v = new TreeMap<>();
                         v.put(value, 1);
                         valueCount.put(key, v);
@@ -325,8 +325,8 @@
                 Main.main.undoRedo.add(new ChangePropertyCommand(selection, newkey, value));
             } else {
-                Collection<Command> commands = new Vector<Command>();
+                Collection<Command> commands = new Vector<>();
                 commands.add(new ChangePropertyCommand(selection, key, null));
                 if (value.equals(tr("<different>"))) {
-                    HashMap<String, Vector<OsmPrimitive>> map = new HashMap<String, Vector<OsmPrimitive>>();
+                    HashMap<String, Vector<OsmPrimitive>> map = new HashMap<>();
                     for (OsmPrimitive osm : selection) {
                         String val = osm.get(key);
@@ -335,5 +335,5 @@
                                 map.get(val).add(osm);
                             } else {
-                                Vector<OsmPrimitive> v = new Vector<OsmPrimitive>();
+                                Vector<OsmPrimitive> v = new Vector<>();
                                 v.add(osm);
                                 map.put(val, v);
Index: applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/OpeningTimeUtils.java
===================================================================
--- applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/OpeningTimeUtils.java	(revision 30736)
+++ applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/OpeningTimeUtils.java	(revision 30737)
@@ -15,13 +15,13 @@
      */
     public static ArrayList<int[]> convert(ArrayList<DateTime> dateTimes) {
-        ArrayList<int[]> ret = new ArrayList<int[]>(); // the list which is
+        ArrayList<int[]> ret = new ArrayList<>(); // the list which is
         // returned
         for (int i = 0; i < dateTimes.size(); ++i) { // iterate over every entry
             DateTime dateTime = dateTimes.get(i);
-            ArrayList<DateTime> newDateTimes = new ArrayList<DateTime>();
+            ArrayList<DateTime> newDateTimes = new ArrayList<>();
 
             // test if the given entry is a single dayspan
             if (dateTime.daySpans.size() == 1 && dateTime.daySpans.get(0).isSpan()) {
-                ArrayList<DaySpan> partDaySpans = new ArrayList<DaySpan>();
+                ArrayList<DaySpan> partDaySpans = new ArrayList<>();
                 int start_day = dateTime.daySpans.get(0).startDay;
 
Index: applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/OheEditor.java
===================================================================
--- applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/OheEditor.java	(revision 30736)
+++ applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/OheEditor.java	(revision 30737)
@@ -191,5 +191,5 @@
 
         setEnabled(true);
-        timeRects = new ArrayList<TimeRect>();
+        timeRects = new ArrayList<>();
         if (time != null) {
             for (int[] timeRectValues : time) {
