Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
vadere
vadere
Commits
e0689ea2
Commit
e0689ea2
authored
Nov 04, 2016
by
Jakob Schöttl
Browse files
Refactor helper method
parent
6518661c
Changes
1
Hide whitespace changes
Inline
Side-by-side
VadereState/src/org/vadere/state/scenario/Topography.java
View file @
e0689ea2
...
...
@@ -72,7 +72,7 @@ public class Topography {
allOtherAttributes
.
add
(
attributes
);
allOtherAttributes
.
add
(
attributesCar
);
allOtherAttributes
.
add
(
attributesPedestrian
);
removeNullAttributes
(
);
removeNullAttributes
From
(
allOtherAttributes
);
obstacles
=
new
LinkedList
<>();
stairs
=
new
LinkedList
<>();
...
...
@@ -94,7 +94,7 @@ public class Topography {
}
/** Clean up the list of attributes by removing {@code null}. */
private
void
removeNullAttributes
(
)
{
private
void
removeNullAttributes
From
(
Set
<
Attributes
>
allOtherAttributes
)
{
allOtherAttributes
.
remove
(
null
);
// Actually, only attributes, not nulls should be added to this set.
// But sometimes null is passed as attributes and added to the set,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment