Changeset 15096 in josm
- Timestamp:
- 2019-05-19T23:43:25+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyles.java
r14193 r15096 10 10 import java.util.Map; 11 11 import java.util.Map.Entry; 12 import java.util.Objects; 12 13 import java.util.Optional; 13 14 … … 499 500 */ 500 501 void add(StyleSource style) { 501 styleSources.add( style);502 styleSources.add(Objects.requireNonNull(style)); 502 503 } 503 504 … … 508 509 */ 509 510 boolean remove(StyleSource style) { 510 return styleSources.remove( style);511 return styleSources.remove(Objects.requireNonNull(style)); 511 512 } 512 513 … … 517 518 void setStyleSources(Collection<StyleSource> sources) { 518 519 styleSources.clear(); 519 s tyleSources.addAll(sources);520 sources.forEach(this::add); 520 521 } 521 522
Note:
See TracChangeset
for help on using the changeset viewer.