Changeset 7083 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/TextElement.java
- Timestamp:
- 2014-05-09T06:03:50+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/TextElement.java
r6889 r7083 2 2 package org.openstreetmap.josm.gui.mappaint; 3 3 4 import static org.openstreetmap.josm.tools.Utils.equal;5 6 4 import java.awt.Color; 7 5 import java.awt.Font; 6 import java.util.Objects; 8 7 9 8 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 90 89 91 90 /* 92 * Check whether the label composition strategy is given by 93 * a keyword 91 * Check whether the label composition strategy is given by a keyword 94 92 */ 95 93 Keyword keyword = c.get(TEXT, null, Keyword.class, true); 96 if ( equal(keyword,Keyword.AUTO))94 if (Keyword.AUTO.equals(keyword)) 97 95 return AUTO_LABEL_COMPOSITION_STRATEGY; 98 96 … … 212 210 return false; 213 211 final TextElement other = (TextElement) obj; 214 return equal(labelCompositionStrategy, other.labelCompositionStrategy) &&215 equal(font, other.font) &&212 return Objects.equals(labelCompositionStrategy, other.labelCompositionStrategy) && 213 Objects.equals(font, other.font) && 216 214 xOffset == other.xOffset && 217 215 yOffset == other.yOffset && 218 equal(color, other.color) &&219 equal(haloRadius, other.haloRadius) &&220 equal(haloColor, other.haloColor);216 Objects.equals(color, other.color) && 217 Objects.equals(haloRadius, other.haloRadius) && 218 Objects.equals(haloColor, other.haloColor); 221 219 } 222 220 }
Note:
See TracChangeset
for help on using the changeset viewer.
