Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
We have upgraded GitLab to 15.1. Due to major code changes GitLab was down for some time.
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
Show whitespace changes
Inline
Side-by-side
VadereState/src/org/vadere/state/scenario/Topography.java
View file @
e0689ea2
...
@@ -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
(
);
removeNullAttributes
From
(
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
removeNullAttributes
From
(
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,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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