Changeset 17583 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2021-03-18T00:57:03+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java
r17101 r17583 653 653 public boolean matches(Environment env) { 654 654 CheckParameterUtil.ensureParameterNotNull(env, "env"); 655 return conds.stream().allMatch(c -> { 655 // Avoid `conds.stream().allMatch(...)` for its high heap allocations 656 for (Condition c : conds) { 656 657 try { 657 return c.applies(env);658 if (!c.applies(env)) return false; 658 659 } catch (PatternSyntaxException e) { 659 660 Logging.log(Logging.LEVEL_ERROR, "PatternSyntaxException while applying condition" + c + ':', e); 660 661 return false; 661 662 } 662 }); 663 } 664 return true; 663 665 } 664 666
Note:
See TracChangeset
for help on using the changeset viewer.