Ignore:
Timestamp:
2016-07-23T00:26:24+02:00 (8 years ago)
Author:
Don-vip
Message:

see #11390 - sonar - squid:S2293 - improved use of diamond operator thanks to Java 8 (JEP 101: http://openjdk.java.net/jeps/101)

File:
1 edited

Legend:

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

    r10452 r10593  
    473473            boolean isDblClick = isDoubleClick(e);
    474474
    475             Collection<OsmPrimitive> sel = isDblClick ? new HashSet<OsmPrimitive>(40) : null;
     475            Collection<OsmPrimitive> sel = isDblClick ? new HashSet<>(40) : null;
    476476
    477477            boolean hasFixes = setSelection(sel, isDblClick);
     
    576576        FixTask(Collection<TestError> testErrors) {
    577577            super(tr("Fixing errors ..."), false /* don't ignore exceptions */);
    578             this.testErrors = testErrors == null ? new ArrayList<TestError>() : testErrors;
     578            this.testErrors = testErrors == null ? new ArrayList<>() : testErrors;
    579579        }
    580580
Note: See TracChangeset for help on using the changeset viewer.