kopia lustrzana https://github.com/JOSM/MapWithAI
rodzic
b798cef706
commit
0c522d932c
|
@ -100,7 +100,7 @@ public class CreateConnectionsCommand extends Command {
|
|||
}
|
||||
final Collection<OsmPrimitive> tPrimitives = new TreeSet<>();
|
||||
abstractCommand.getInterestedTypes()
|
||||
.forEach(clazz -> tPrimitives.addAll(Utils.filteredCollection(realPrimitives, clazz)));
|
||||
.forEach(clazz -> tPrimitives.addAll(Utils.filteredCollection(realPrimitives, clazz)));
|
||||
|
||||
final Command actualCommand = abstractCommand.getCommand(tPrimitives.stream()
|
||||
.filter(prim -> prim.hasKey(abstractCommand.getKey())).collect(Collectors.toList()));
|
||||
|
|
|
@ -173,7 +173,7 @@ public class MapWithAIAddCommand extends Command implements Runnable {
|
|||
public Collection<String> getSourceTags() {
|
||||
return sources.entrySet().parallelStream()
|
||||
.filter(entry -> editable.getPrimitiveById(entry.getKey()) != null
|
||||
&& !editable.getPrimitiveById(entry.getKey()).isDeleted())
|
||||
&& !editable.getPrimitiveById(entry.getKey()).isDeleted())
|
||||
.map(Entry::getValue).filter(Objects::nonNull).distinct().sorted().collect(Collectors.toList());
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue