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/preferences/projection/ProjectionPreference.java

    r6992 r7005  
    6767    }
    6868
    69     private static List<ProjectionChoice> projectionChoices = new ArrayList<ProjectionChoice>();
    70     private static Map<String, ProjectionChoice> projectionChoicesById = new HashMap<String, ProjectionChoice>();
     69    private static List<ProjectionChoice> projectionChoices = new ArrayList<>();
     70    private static Map<String, ProjectionChoice> projectionChoicesById = new HashMap<>();
    7171
    7272    // some ProjectionChoices that are referenced from other parts of the code
     
    247247    private static final CollectionProperty PROP_SUB_PROJECTION = new CollectionProperty("projection.sub", null);
    248248    public static final StringProperty PROP_SYSTEM_OF_MEASUREMENT = new StringProperty("system_of_measurement", "Metric");
    249     private static final String[] unitsValues = (new ArrayList<String>(SystemOfMeasurement.ALL_SYSTEMS.keySet())).toArray(new String[0]);
     249    private static final String[] unitsValues = (new ArrayList<>(SystemOfMeasurement.ALL_SYSTEMS.keySet())).toArray(new String[0]);
    250250    private static final String[] unitsValuesTr = new String[unitsValues.length];
    251251    static {
Note: See TracChangeset for help on using the changeset viewer.