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/gui/mappaint/Cascade.java

    r7029 r7083  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.gui.mappaint;
    3 
    4 import static org.openstreetmap.josm.tools.Utils.equal;
    53
    64import java.awt.Color;
     
    133131        if (o instanceof Keyword) {
    134132            String s = ((Keyword) o).val;
    135             if (equal(s, "true") || equal(s, "yes"))
     133            if ("true".equals(s) || "yes".equals(s))
    136134                return true;
    137             if (equal(s, "false") || equal(s, "no"))
     135            if ("false".equals(s) || "no".equals(s))
    138136                return false;
    139137        }
Note: See TracChangeset for help on using the changeset viewer.