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/LineTextElemStyle.java

    r5571 r7083  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.gui.mappaint;
     3
     4import java.util.Objects;
    35
    46import org.openstreetmap.josm.data.osm.OsmPrimitive;
    57import org.openstreetmap.josm.data.osm.Way;
    68import org.openstreetmap.josm.data.osm.visitor.paint.MapPaintSettings;
     9import org.openstreetmap.josm.data.osm.visitor.paint.PaintColors;
    710import org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer;
    8 import org.openstreetmap.josm.data.osm.visitor.paint.PaintColors;
    9 import org.openstreetmap.josm.tools.Utils;
    1011
    1112public class LineTextElemStyle extends ElemStyle {
     
    2122
    2223        Keyword textPos = c.get(TEXT_POSITION, null, Keyword.class);
    23         if (textPos != null && !Utils.equal(textPos.val, "line"))
     24        if (textPos != null && !"line".equals(textPos.val))
    2425            return null;
    2526
     
    4344            return false;
    4445        final LineTextElemStyle other = (LineTextElemStyle) obj;
    45         return Utils.equal(text, other.text);
     46        return Objects.equals(text, other.text);
    4647    }
    4748
     
    5556        return "LineTextElemStyle{" + super.toString() + "text=" + text + "}";
    5657    }
    57 
    5858}
Note: See TracChangeset for help on using the changeset viewer.