Ignore:
Timestamp:
2014-05-09T06:03:50+02:00 (10 years ago)
Author:
Don-vip
Message:

see #8465 - replace Utils.equal by Objects.equals, new in Java 7

File:
1 edited

Legend:

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

    r7026 r7083  
    2727import java.util.List;
    2828import java.util.Map;
     29import java.util.Objects;
    2930import java.util.StringTokenizer;
    3031import java.util.concurrent.Callable;
     
    181182     * The commands undo/redo handler.
    182183     */
    183     public UndoRedoHandler undoRedo = new UndoRedoHandler();
     184    public final UndoRedoHandler undoRedo = new UndoRedoHandler();
    184185
    185186    /**
     
    580581        toolbar.control.updateUI();
    581582        contentPanePrivate.updateUI();
    582 
    583583    }
    584584
     
    11231123                final String EXIT = tr("Exit JOSM");
    11241124                final String CONTINUE = tr("Continue, try anyway");
    1125                 int ret = JOptionPane.showOptionDialog(null, panel, tr("Error"), JOptionPane.YES_NO_OPTION, 
     1125                int ret = JOptionPane.showOptionDialog(null, panel, tr("Error"), JOptionPane.YES_NO_OPTION,
    11261126                        JOptionPane.ERROR_MESSAGE, null, new String[] {EXIT, CONTINUE}, EXIT);
    11271127                if (ret == 0) {
     
    11781178    private static void fireProjectionChanged(Projection oldValue, Projection newValue, Bounds oldBounds) {
    11791179        if (newValue == null ^ oldValue == null
    1180                 || (newValue != null && oldValue != null && !Utils.equal(newValue.toCode(), oldValue.toCode()))) {
     1180                || (newValue != null && oldValue != null && !Objects.equals(newValue.toCode(), oldValue.toCode()))) {
    11811181
    11821182            synchronized(Main.class) {
Note: See TracChangeset for help on using the changeset viewer.