File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/org/openstreetmap/josm/data/imagery Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
// License: GPL. For details, see LICENSE file.
2
2
package org .openstreetmap .josm .data .imagery ;
3
3
4
+ import static java .util .function .Predicate .not ;
4
5
import static org .openstreetmap .josm .tools .I18n .tr ;
5
6
6
7
import java .io .IOException ;
@@ -167,7 +168,8 @@ protected void loadSource(String source) {
167
168
reader .setFastFail (fastFail );
168
169
Collection <ImageryInfo > result = reader .parse ();
169
170
// See #23485 (remove invalid source entries)
170
- result .removeIf (info -> !info .isValid ());
171
+ result .stream ().filter (not (ImageryInfo ::isValid )).forEach (info -> Logging .error ("Not adding invalid imagery: {0}" , info ));
172
+ result .removeIf (not (ImageryInfo ::isValid ));
171
173
newLayers .addAll (result );
172
174
} catch (IOException ex ) {
173
175
loadError = true ;
You can’t perform that action at this time.
0 commit comments