Changeset 7083 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/LineTextElemStyle.java
- Timestamp:
- 2014-05-09T06:03:50+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/LineTextElemStyle.java
r5571 r7083 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.mappaint; 3 4 import java.util.Objects; 3 5 4 6 import org.openstreetmap.josm.data.osm.OsmPrimitive; 5 7 import org.openstreetmap.josm.data.osm.Way; 6 8 import org.openstreetmap.josm.data.osm.visitor.paint.MapPaintSettings; 9 import org.openstreetmap.josm.data.osm.visitor.paint.PaintColors; 7 10 import 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;10 11 11 12 public class LineTextElemStyle extends ElemStyle { … … 21 22 22 23 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)) 24 25 return null; 25 26 … … 43 44 return false; 44 45 final LineTextElemStyle other = (LineTextElemStyle) obj; 45 return Utils.equal(text, other.text);46 return Objects.equals(text, other.text); 46 47 } 47 48 … … 55 56 return "LineTextElemStyle{" + super.toString() + "text=" + text + "}"; 56 57 } 57 58 58 }
Note:
See TracChangeset
for help on using the changeset viewer.