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

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

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java

    r9067 r9070  
    188188        cmds.addAll(resolution);
    189189        cmds.add(new DeleteCommand(deletedWays));
    190         final SequenceCommand sequenceCommand = new SequenceCommand(/* for correct i18n of plural forms - see #9110 */
     190        final Command sequenceCommand = new SequenceCommand(/* for correct i18n of plural forms - see #9110 */
    191191                trn("Combine {0} way", "Combine {0} ways", ways.size(), ways.size()), cmds);
    192192
    193         return new Pair<Way, Command>(targetWay, sequenceCommand);
     193        return new Pair<>(targetWay, sequenceCommand);
    194194    }
    195195
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java

    r9059 r9070  
    883883
    884884        // add direction perpendicular to the selected segment
    885         possibleMoveDirections = new ArrayList<ReferenceSegment>();
     885        possibleMoveDirections = new ArrayList<>();
    886886        possibleMoveDirections.add(new ReferenceSegment(new EastNorth(
    887887                initialN1en.getY() - initialN2en.getY(),
  • trunk/src/org/openstreetmap/josm/actions/relation/AbstractRelationAction.java

    r8777 r9070  
    2424            return Collections.<Relation>emptySet();
    2525        } else {
    26             return new SubclassFilteredCollection<OsmPrimitive, Relation>(
    27                     primitives, OsmPrimitive.relationPredicate);
     26            return new SubclassFilteredCollection<>(primitives, OsmPrimitive.relationPredicate);
    2827        }
    2928    }
Note: See TracChangeset for help on using the changeset viewer.