Commit 07801a88 authored by Jakob Schöttl's avatar Jakob Schöttl
Browse files

Fix formatting and comment

parent d97f5478
package org.vadere.state.attributes.models;
import java.util.LinkedList;
import java.util.List;
import org.vadere.state.attributes.Attributes;
......@@ -24,10 +23,10 @@ public class AttributesBHM extends Attributes {
private boolean followerProximityNavigation = true;
private boolean differentBehaviour = false;
private LinkedList<Double> differentEvasionBehaviourPercentage = new LinkedList<Double>();
private LinkedList<Double> differentEvasionBehaviourPercentage = new LinkedList<>();
private boolean varyingBehaviour = false;
private boolean adaptiveBehaviourDensity = false;
private LinkedList<Integer> adaptiveBehaviourStepsRemained = new LinkedList<Integer>();
private LinkedList<Integer> adaptiveBehaviourStepsRemained = new LinkedList<>();
private boolean switchBehaviour = false;
private double evasionDetourThreshold = 0.1;
......
......@@ -100,7 +100,7 @@ public class DynamicElementContainer<T extends DynamicElement> {
@Override
protected DynamicElementContainer<T> clone() throws CloneNotSupportedException {
DynamicElementContainer<T> clone = new DynamicElementContainer<T>(bounds, cellSize);
DynamicElementContainer<T> clone = new DynamicElementContainer<>(bounds, cellSize);
for (T element : this.elementMap.values()) {
clone.addElement(element);
......
......@@ -407,7 +407,7 @@ public class Topography {
}
public void sealAllAttributes() {
// don't try to do this with flatMap -> weird compiler error "cannot infer type arguments ..."
// tried to do this with flatMap -> weird compiler error "cannot infer type arguments ..."
for (List<? extends ScenarioElement> list : allScenarioElements) {
list.forEach(se -> se.getAttributes().seal());
}
......
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