Ignore:
Timestamp:
2014-04-26T17:39:23+02:00 (10 years ago)
Author:
Don-vip
Message:

see #8465 - use diamond operator where applicable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MapStatus.java

    r6992 r7005  
    196196    private Thread thread;
    197197
    198     private final List<StatusTextHistory> statusText = new ArrayList<StatusTextHistory>();
     198    private final List<StatusTextHistory> statusText = new ArrayList<>();
    199199
    200200    private static class StatusTextHistory {
     
    352352                                        // These labels may need to be updated from the outside
    353353                                        // so collect them
    354                                         List<JLabel> lbls = new ArrayList<JLabel>(osms.size());
     354                                        List<JLabel> lbls = new ArrayList<>(osms.size());
    355355                                        for (final OsmPrimitive osm : osms) {
    356356                                            JLabel l = popupBuildPrimitiveLabels(osm);
     
    720720        private final JMenuItem jumpButton = add(Main.main.menu.jumpToAct);
    721721       
    722         private final Collection<JCheckBoxMenuItem> somItems = new ArrayList<JCheckBoxMenuItem>();
     722        private final Collection<JCheckBoxMenuItem> somItems = new ArrayList<>();
    723723       
    724724        private final JSeparator separator = new JSeparator();
     
    733733
    734734        public MapStatusPopupMenu() {
    735             for (final String key : new TreeSet<String>(SystemOfMeasurement.ALL_SYSTEMS.keySet())) {
     735            for (final String key : new TreeSet<>(SystemOfMeasurement.ALL_SYSTEMS.keySet())) {
    736736                JCheckBoxMenuItem item = new JCheckBoxMenuItem(new AbstractAction(key) {
    737737                    @Override
     
    830830        if (Main.pref.getBoolean("statusbar.change-system-of-measurement-on-click", true)) {
    831831            distText.addMouseListener(new MouseAdapter() {
    832                 private final List<String> soms = new ArrayList<String>(new TreeSet<String>(SystemOfMeasurement.ALL_SYSTEMS.keySet()));
     832                private final List<String> soms = new ArrayList<>(new TreeSet<>(SystemOfMeasurement.ALL_SYSTEMS.keySet()));
    833833   
    834834                @Override
Note: See TracChangeset for help on using the changeset viewer.