Commit 026b0341 authored by Marion Goedel's avatar Marion Goedel

Added TargetChanger ids to UnusedTargetsCheck.java

parent 9ba99d1f
Pipeline #264996 canceled with stages
in 92 minutes and 7 seconds
......@@ -17,6 +17,8 @@ public class UnusedTargetsCheck extends AbstractScenarioCheck implements Topogra
Set<Integer> usedTargetIds = new HashSet<>();
topography.getSources()
.forEach(s -> usedTargetIds.addAll(s.getAttributes().getTargetIds()));
topography.getTargetChangers()
.forEach(s -> usedTargetIds.addAll(s.getAttributes().getNextTarget()));
topography.getTargets().forEach(t -> {
if (!usedTargetIds.contains(t.getId())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment