Changeset 15934 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2020-02-26T01:52:17+01:00 (5 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ConditionFactory.java
r15671 r15934 259 259 */ 260 260 public SimpleKeyValueCondition(String k, String v) { 261 this.k = k ;262 this.v = v ;261 this.k = k.intern(); 262 this.v = v.intern(); 263 263 } 264 264 … … 311 311 */ 312 312 public KeyValueCondition(String k, String v, Op op, boolean considerValAsKey) { 313 this.k = k ;314 this.v = v ;313 this.k = k.intern(); 314 this.v = v.intern(); 315 315 this.op = op; 316 316 this.considerValAsKey = considerValAsKey; -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/LiteralExpression.java
r14484 r15934 20 20 public LiteralExpression(Object literal) { 21 21 CheckParameterUtil.ensureParameterNotNull(literal); 22 this.literal = literal ;22 this.literal = literal instanceof String ? ((String) literal).intern() : literal; 23 23 } 24 24
Note:
See TracChangeset
for help on using the changeset viewer.