Solve issues in method `addNewAgentToScenario`
-
Copied from method: TODO [priority=high] [task=refactoring] this is bad programming. Why is the target list added later? What if Pedestrian does something with the target list before it is stored? -
Copied from method: TODO [priority=high] [task=refactoring] why only if he has no targets? because the createElement
method might add some. -
Method returns newElement
but it is actually never used, sovoid
should do as well. -
[ ] IntelliJ suggests to turn the method private (before check if plausible) -
IntelliJ suggests to turn the method package-private (before check if plausible)