Changeset 30438 in osm for applications/editors/josm


Ignore:
Timestamp:
2014-05-09T06:00:14+02:00 (11 years ago)
Author:
donvip
Message:

[josm_roadsigns] see #josm8465 - replace call to Utils.equal by Objects.equals, new in Java 7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/roadsigns/src/org/openstreetmap/josm/plugins/roadsigns/RoadSignsPlugin.java

    r30360 r30438  
    1818import java.util.Collection;
    1919import java.util.List;
     20import java.util.Objects;
    2021
    2122import javax.swing.BorderFactory;
     
    2425
    2526import org.xml.sax.SAXException;
    26 
    2727import org.openstreetmap.josm.Main;
    2828import org.openstreetmap.josm.actions.JosmAction;
     
    149149            // change the current preset selection to custom directly
    150150            String lastCustomFile = Main.pref.get("plugin.roadsigns.sources.last", null);
    151             if (!Utils.equal(customFile, lastCustomFile)) {
     151            if (!Objects.equals(customFile, lastCustomFile)) {
    152152                Main.pref.put("plugin.roadsigns.sources.last", customFile);
    153153                Main.pref.put("plugin.roadsigns.preset.selection", "custom");
Note: See TracChangeset for help on using the changeset viewer.