Changeset 17808 in josm for trunk/src/org


Ignore:
Timestamp:
2021-04-20T23:52:29+02:00 (4 years ago)
Author:
simon04
Message:

see #20745 - Avoid heap allocations in MapCSS MatchingReferrerFinder due to Environment.withPrimitive

Fixup r17802.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java

    r17804 r17808  
    1717import java.util.Objects;
    1818import java.util.Set;
    19 import java.util.function.IntFunction;
    20 import java.util.function.IntSupplier;
    2119import java.util.stream.Collectors;
    2220
     
    2624import org.openstreetmap.josm.data.osm.IRelationMember;
    2725import org.openstreetmap.josm.data.osm.IWay;
    28 import org.openstreetmap.josm.data.osm.OsmPrimitive;
    2926import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
    3027import org.openstreetmap.josm.data.osm.OsmUtils;
     
    219216                    if (!left.matches(e))
    220217                        return;
    221                 } catch (Exception exception) {
     218                } finally {
    222219                    e.osm = osm;
    223220                }
Note: See TracChangeset for help on using the changeset viewer.