Changeset 12901 in josm for trunk/src/org
- Timestamp:
- 2017-09-26T02:25:00+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
r12873 r12901 503 503 public static SplitWayResult splitWay(Way way, List<List<Node>> wayChunks, 504 504 Collection<? extends OsmPrimitive> selection, Strategy splitStrategy) { 505 SplitWayCommand cmd = SplitWayCommand.splitWay(way, wayChunks, selection, x -> splitStrategy.determineWayToKeep(x));505 SplitWayCommand cmd = SplitWayCommand.splitWay(way, wayChunks, selection, splitStrategy::determineWayToKeep); 506 506 return cmd != null ? new SplitWayResult(cmd) : null; 507 507 } -
trunk/src/org/openstreetmap/josm/command/SplitWayCommand.java
r12869 r12901 38 38 public class SplitWayCommand extends SequenceCommand { 39 39 40 private static volatile Consumer<String> warningNotifier = msg -> Logging.warn(msg);40 private static volatile Consumer<String> warningNotifier = Logging::warn; 41 41 42 42 /** -
trunk/src/org/openstreetmap/josm/data/tagging/ac/AutoCompletionSet.java
r12859 r12901 3 3 4 4 import java.util.Collection; 5 import java.util.Objects; 5 6 import java.util.Optional; 6 7 import java.util.TreeSet; … … 47 48 */ 48 49 public boolean addAll(Collection<String> values, AutoCompletionPriority priority) { 49 return addAll(values.stream().filter( v -> v != null).map(v -> new AutoCompletionItem(v, priority)).collect(Collectors.toList()));50 return addAll(values.stream().filter(Objects::nonNull).map(v -> new AutoCompletionItem(v, priority)).collect(Collectors.toList())); 50 51 } 51 52
Note:
See TracChangeset
for help on using the changeset viewer.