Changeset 19108 in josm for trunk/src/org/openstreetmap/josm/actions/SelectAllAction.java
- Timestamp:
- 2024-06-17T19:37:02+02:00 (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/org/openstreetmap/josm/actions/SelectAllAction.java ¶
r17062 r19108 8 8 import java.awt.event.KeyEvent; 9 9 10 import org.openstreetmap.josm.data.osm.IPrimitive; 10 11 import org.openstreetmap.josm.data.osm.OsmData; 11 12 import org.openstreetmap.josm.tools.Shortcut; … … 30 31 return; 31 32 OsmData<?, ?, ?, ?> ds = getLayerManager().getActiveData(); 32 // Do not use method reference before the Java 11 migration 33 // Otherwise we face a compiler bug, see below: 34 // https://bugs.openjdk.java.net/browse/JDK-8141508 35 // https://bugs.openjdk.java.net/browse/JDK-8142476 36 // https://bugs.openjdk.java.net/browse/JDK-8191655 37 ds.setSelected(ds.getPrimitives(t -> t.isSelectable())); 33 ds.setSelected(ds.getPrimitives(IPrimitive::isSelectable)); 38 34 } 39 35
Note:
See TracChangeset
for help on using the changeset viewer.