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

[josm_plugins] fix Java 7 / unused code warnings

Location:
applications/editors/josm/plugins/buildings_tools/src/buildings_tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/buildings_tools/src/buildings_tools/AngleSnap.java

    r30045 r30737  
    1313public class AngleSnap {
    1414    private static final double PI_2 = Math.PI / 2;
    15     final TreeSet<Double> snapSet = new TreeSet<Double>();
     15    final TreeSet<Double> snapSet = new TreeSet<>();
    1616
    1717    public final void clear() {
  • applications/editors/josm/plugins/buildings_tools/src/buildings_tools/Building.java

    r30045 r30737  
    232232        bbox.add(eastNorth2latlon(en[2]));
    233233        bbox.add(eastNorth2latlon(en[3]));
    234         List<Node> nodes = new LinkedList<Node>();
     234        List<Node> nodes = new LinkedList<>();
    235235        nodesloop:
    236236        for (Node n : Main.main.getCurrentDataSet().searchNodes(bbox)) {
     
    295295        }
    296296        w.addNode(nodes[0]);
    297         Collection<Command> cmds = new LinkedList<Command>();
     297        Collection<Command> cmds = new LinkedList<>();
    298298        for (int i = 0; i < 4; i++) {
    299299            if (created[i])
  • applications/editors/josm/plugins/buildings_tools/src/buildings_tools/DrawBuildingAction.java

    r30045 r30737  
    408408        // update snap only if selection isn't too big
    409409        if (newSelection.size() <= 10) {
    410             LinkedList<Node> nodes = new LinkedList<Node>();
    411             LinkedList<Way> ways = new LinkedList<Way>();
     410            LinkedList<Node> nodes = new LinkedList<>();
     411            LinkedList<Way> ways = new LinkedList<>();
    412412
    413413            for (OsmPrimitive p : newSelection) {
  • applications/editors/josm/plugins/buildings_tools/src/buildings_tools/ToolSettings.java

    r30045 r30737  
    2424    private static double lenstep = 0;
    2525    private static boolean useAddr;
    26     private static final Map<String, String> TAGS = new HashMap<String, String>();
     26    private static final Map<String, String> TAGS = new HashMap<>();
    2727    private static boolean autoSelect;
    2828
     
    5454
    5555    public static void saveTags() {
    56         ArrayList<String> values = new ArrayList<String>(TAGS.size() * 2);
     56        ArrayList<String> values = new ArrayList<>(TAGS.size() * 2);
    5757        for (Entry<String, String> entry : TAGS.entrySet()) {
    5858            values.add(entry.getKey());
Note: See TracChangeset for help on using the changeset viewer.