kopia lustrzana https://github.com/JOSM/MapWithAI
Fix a concurrent modification error for a list and add
Signed-off-by: Taylor Smock <taylor.smock@kaart.com>pull/1/head
rodzic
114920c8ee
commit
a49f8358c3
|
@ -78,7 +78,7 @@ public final class MapWithAIDataUtils {
|
||||||
* Remove MapWithAI paint styles
|
* Remove MapWithAI paint styles
|
||||||
*/
|
*/
|
||||||
public static void removeMapWithAIPaintStyles() {
|
public static void removeMapWithAIPaintStyles() {
|
||||||
MapPaintStyles.getStyles().getStyleSources().parallelStream()
|
new ArrayList<>(MapPaintStyles.getStyles().getStyleSources()).parallelStream()
|
||||||
.filter(source -> PAINT_STYLE_RESOURCE_URL.equals(source.url))
|
.filter(source -> PAINT_STYLE_RESOURCE_URL.equals(source.url))
|
||||||
.forEach(MapPaintStyles::removeStyle);
|
.forEach(MapPaintStyles::removeStyle);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue