Changeset 10601 in josm for trunk/src/org/openstreetmap/josm/actions/UnGlueAction.java
- Timestamp:
- 2016-07-23T04:10:39+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/UnGlueAction.java
r10448 r10601 43 43 import org.openstreetmap.josm.tools.GBC; 44 44 import org.openstreetmap.josm.tools.ImageProvider; 45 import org.openstreetmap.josm.tools.Predicate;46 45 import org.openstreetmap.josm.tools.Shortcut; 47 46 import org.openstreetmap.josm.tools.UserCancelException; … … 251 250 252 251 private static boolean isTagged(final Iterable<Node> existingNodes) { 253 return Utils.exists(existingNodes, new Predicate<Node>() { 254 @Override 255 public boolean evaluate(final Node selectedNode) { 256 return selectedNode.hasKeys(); 257 } 258 }); 252 return Utils.exists(existingNodes, selectedNode -> selectedNode.hasKeys()); 259 253 } 260 254 261 255 private static boolean isUsedInRelations(final Iterable<Node> existingNodes) { 262 return Utils.exists(existingNodes, new Predicate<Node>() { 263 @Override 264 public boolean evaluate(final Node selectedNode) { 265 return Utils.exists(selectedNode.getReferrers(), OsmPrimitive.relationPredicate); 266 } 267 }); 256 return Utils.exists(existingNodes, selectedNode -> Utils.exists(selectedNode.getReferrers(), OsmPrimitive.relationPredicate)); 268 257 } 269 258
Note:
See TracChangeset
for help on using the changeset viewer.