Changeset 4197 in josm for trunk/src/org
- Timestamp:
- 2011-07-03T10:45:41+02:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/User.java
r4071 r4197 14 14 import org.openstreetmap.josm.Main; 15 15 import org.openstreetmap.josm.io.MirroredInputStream; 16 import org.openstreetmap.josm.tools.Utils; 16 17 17 18 /** … … 214 215 */ 215 216 public String getName() { 216 StringBuilder sb = new StringBuilder(); 217 for (String name: names) { 218 sb.append(name); 219 sb.append('/'); 220 } 221 sb.deleteCharAt(sb.length() - 1); 222 return sb.toString(); 217 return Utils.join("/", names); 223 218 } 224 219 -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r4100 r4197 140 140 a = ""; 141 141 } 142 if (s != null) {142 if (s != null) { 143 143 s.append(sep).append(a.toString()); 144 144 } else {
Note:
See TracChangeset
for help on using the changeset viewer.