Ignore:
Timestamp:
2014-10-18T23:07:52+02:00 (10 years ago)
Author:
donvip
Message:

[josm_plugins] fix Java 7 / unused code warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wms-turbo-challenge2/src/wmsturbochallenge/GameWindow.java

    r29854 r30737  
    9494            addActionListener(this);
    9595
    96             trackSegs = new ArrayList<Collection<WayPoint>>();
     96            trackSegs = new ArrayList<>();
    9797        }
    9898
     
    113113
    114114            /* Start recording */
    115             segment = new ArrayList<WayPoint>();
     115            segment = new ArrayList<>();
    116116            trackSegs.add(segment);
    117117            actionPerformed(null);
     
    233233    protected int current_car = 0;
    234234    protected boolean cacti_on = true;
    235     protected List<EastNorth> cacti = new ArrayList<EastNorth>();
    236     protected List<EastNorth> todelete = new ArrayList<EastNorth>();
     235    protected List<EastNorth> cacti = new ArrayList<>();
     236    protected List<EastNorth> todelete = new ArrayList<>();
    237237    protected int splashframe = -1;
    238238    protected EastNorth splashcactus;
     
    337337            }
    338338            cacti.removeAll(todelete);
    339             todelete = new ArrayList<EastNorth>();
     339            todelete = new ArrayList<>();
    340340        }
    341341    }
     
    673673                cacti_on = !cacti_on;
    674674                if (!cacti_on)
    675                     cacti = new ArrayList<EastNorth>();
     675                    cacti = new ArrayList<>();
    676676            }
    677677
Note: See TracChangeset for help on using the changeset viewer.