Changeset 15901 in josm for trunk/src/com/kitfox/svg
- Timestamp:
- 2020-02-22T19:40:23+01:00 (5 years ago)
- Location:
- trunk/src/com/kitfox/svg
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/kitfox/svg/SVGElement.java
r14643 r15901 260 260 if (this.id != null && !this.id.equals("")) 261 261 { 262 this.id = this.id.intern(); 262 263 diagram.setElement(this.id, this); 263 264 } 264 265 265 266 String className = attrs.getValue("class"); 266 this.cssClass = (className == null || className.equals("")) ? null : className ;267 this.cssClass = (className == null || className.equals("")) ? null : className.intern(); 267 268 //docRoot = helper.docRoot; 268 269 //universe = helper.universe; … … 298 299 String value = attrs.getValue(i); 299 300 300 presAttribs.put(name, new StyleAttribute(name, value ));301 presAttribs.put(name, new StyleAttribute(name, value == null ? null : value.intern())); 301 302 } 302 303 } -
trunk/src/com/kitfox/svg/xml/StyleAttribute.java
r8084 r15901 70 70 public StyleAttribute(String name) 71 71 { 72 this.name = name; 73 stringValue = null; 72 this(name, null); 74 73 } 75 74 76 75 public StyleAttribute(String name, String stringValue) 77 76 { 78 this.name = name;79 this.stringValue = stringValue;77 setName(name); 78 setStringValue(stringValue); 80 79 } 81 80 … … 86 85 public StyleAttribute setName(String name) 87 86 { 88 this.name = name ;87 this.name = name == null ? null : name.intern(); 89 88 return this; 90 89 } … … 102 101 public void setStringValue(String value) 103 102 { 104 stringValue = value ;103 stringValue = value == null ? null : value.intern(); 105 104 } 106 105
Note:
See TracChangeset
for help on using the changeset viewer.