Changeset 16438 in josm for trunk/src/org/openstreetmap/josm/gui/layer/NativeScaleLayer.java
- Timestamp:
- 2020-05-17T14:18:22+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/NativeScaleLayer.java
r13852 r16438 6 6 import java.util.List; 7 7 import java.util.Locale; 8 import java.util.stream.Collectors; 8 9 9 10 import org.openstreetmap.josm.gui.NavigatableComponent; … … 233 234 @Override 234 235 public String toString() { 235 StringBuilder stringBuilder = new StringBuilder(); 236 for (Scale s: this.scales) { 237 stringBuilder.append(s.toString() + '\n'); 238 } 239 return stringBuilder.toString(); 236 return this.scales.stream().map(Scale::toString).collect(Collectors.joining("\n")); 240 237 } 241 238
Note:
See TracChangeset
for help on using the changeset viewer.
