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/dialogs/CommandStackDialog.java

    r6726 r7005  
    226226     * Simple listener setup to update the button enabled state when the side dialog shows.
    227227     */
    228     Set<IEnabledStateUpdating> showNotifyListener = new LinkedHashSet<IEnabledStateUpdating>();
     228    Set<IEnabledStateUpdating> showNotifyListener = new LinkedHashSet<>();
    229229
    230230    private void addShowNotifyListener(IEnabledStateUpdating listener) {
     
    304304        CommandListMutableTreeNode node = new CommandListMutableTreeNode(c, idx);
    305305        if (c.getChildren() != null) {
    306             List<PseudoCommand> children = new ArrayList<PseudoCommand>(c.getChildren());
     306            List<PseudoCommand> children = new ArrayList<>(c.getChildren());
    307307            for (int i=0; i<children.size(); ++i) {
    308308                node.add(getNodeForCommand(children.get(i), i));
     
    320320        PseudoCommand c = ((CommandListMutableTreeNode) path.getLastPathComponent()).getCommand();
    321321        final OsmDataLayer currentLayer = Main.main.getEditLayer();
    322         FilteredCollection<OsmPrimitive> prims = new FilteredCollection<OsmPrimitive>(
     322        FilteredCollection<OsmPrimitive> prims = new FilteredCollection<>(
    323323                c.getParticipatingPrimitives(),
    324324                new Predicate<OsmPrimitive>(){
Note: See TracChangeset for help on using the changeset viewer.