Changeset 15901 in josm for trunk/src/com/kitfox/svg/xml
- Timestamp:
- 2020-02-22T19:40:23+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.