Ignore:
Timestamp:
2015-11-30T08:36:35+01:00 (8 years ago)
Author:
Don-vip
Message:

Sonar - squid:S2293 - The diamond operator ("<>") should be used

Location:
trunk/src/org/openstreetmap/josm/data/validation/tests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java

    r9067 r9070  
    382382    public Command fixError(TestError testError) {
    383383        if (!isFixable(testError)) return null;
    384         Collection<OsmPrimitive> sel = new LinkedList<OsmPrimitive>(testError.getPrimitives());
     384        Collection<OsmPrimitive> sel = new LinkedList<>(testError.getPrimitives());
    385385        Set<Node> nodes = new LinkedHashSet<>(OsmPrimitive.getFilteredList(sel, Node.class));
    386386
  • trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java

    r8958 r9070  
    583583         */
    584584        public Set<TagCheck> getTagCheckDependencies(Collection<TagCheck> schecks) {
    585             Set<TagCheck> result = new HashSet<MapCSSTagChecker.TagCheck>();
     585            Set<TagCheck> result = new HashSet<>();
    586586            Set<String> classes = getClassesIds();
    587587            if (schecks != null && !classes.isEmpty()) {
     
    770770                final OsmPrimitive p = OsmUtils.createPrimitive(i.getKey());
    771771                // Build minimal ordered list of checks to run to test the assertion
    772                 List<Set<TagCheck>> checksToRun = new ArrayList<Set<TagCheck>>();
     772                List<Set<TagCheck>> checksToRun = new ArrayList<>();
    773773                Set<TagCheck> checkDependencies = check.getTagCheckDependencies(schecks);
    774774                if (!checkDependencies.isEmpty()) {
  • trunk/src/org/openstreetmap/josm/data/validation/tests/MultipolygonTest.java

    r8870 r9070  
    302302                }
    303303            }
    304             List<OsmPrimitive> newPrimitives = new ArrayList<OsmPrimitive>(primitives);
     304            List<OsmPrimitive> newPrimitives = new ArrayList<>(primitives);
    305305            newPrimitives.add(0, r);
    306306            error.setPrimitives(newPrimitives);
  • trunk/src/org/openstreetmap/josm/data/validation/tests/SimilarNamedWays.java

    r9067 r9070  
    4141    private MultiMap<Way, Way> errorWays;
    4242
    43     private final List<NormalizeRule> rules = new ArrayList<NormalizeRule>();
     43    private final List<NormalizeRule> rules = new ArrayList<>();
    4444
    4545    /**
Note: See TracChangeset for help on using the changeset viewer.