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

Refactor helper method

parent 6518661c
...@@ -72,7 +72,7 @@ public class Topography { ...@@ -72,7 +72,7 @@ public class Topography {
allOtherAttributes.add(attributes); allOtherAttributes.add(attributes);
allOtherAttributes.add(attributesCar); allOtherAttributes.add(attributesCar);
allOtherAttributes.add(attributesPedestrian); allOtherAttributes.add(attributesPedestrian);
removeNullAttributes(); removeNullAttributesFrom(allOtherAttributes);
obstacles = new LinkedList<>(); obstacles = new LinkedList<>();
stairs = new LinkedList<>(); stairs = new LinkedList<>();
...@@ -94,7 +94,7 @@ public class Topography { ...@@ -94,7 +94,7 @@ public class Topography {
} }
/** Clean up the list of attributes by removing {@code null}. */ /** Clean up the list of attributes by removing {@code null}. */
private void removeNullAttributes() { private void removeNullAttributesFrom(Set<Attributes> allOtherAttributes) {
allOtherAttributes.remove(null); allOtherAttributes.remove(null);
// Actually, only attributes, not nulls should be added to this set. // Actually, only attributes, not nulls should be added to this set.
// But sometimes null is passed as attributes and added to the set, // But sometimes null is passed as attributes and added to the set,
......
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