Ignore:
Timestamp:
2014-04-26T17:39:23+02:00 (12 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/data/validation/OsmValidator.java

    r6995 r7005  
    7777    public static double griddetail;
    7878
    79     public static final Collection<String> ignoredErrors = new TreeSet<String>();
     79    public static final Collection<String> ignoredErrors = new TreeSet<>();
    8080
    8181    /**
     
    124124    private static Map<String, Test> allTestsMap;
    125125    static {
    126         allTestsMap = new HashMap<String, Test>();
     126        allTestsMap = new HashMap<>();
    127127        for (Class<Test> testClass : allAvailableTests) {
    128128            try {
     
    226226        applyPrefs(allTestsMap, false);
    227227        applyPrefs(allTestsMap, true);
    228         return new TreeMap<String, Test>(allTestsMap);
     228        return new TreeMap<>(allTestsMap);
    229229    }
    230230
     
    263263    public static Collection<Test> getEnabledTests(boolean beforeUpload) {
    264264        Collection<Test> enabledTests = getTests();
    265         for (Test t : new ArrayList<Test>(enabledTests)) {
     265        for (Test t : new ArrayList<>(enabledTests)) {
    266266            if (beforeUpload ? t.testBeforeUpload : t.enabled) {
    267267                continue;
Note: See TracChangeset for help on using the changeset viewer.