Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
vadere
vadere
Commits
024057fa
Commit
024057fa
authored
Jul 06, 2018
by
Daniel Lehmberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleaner ABC: subclasses have to throw themselves an Unupported Exception (like for getShape)
parent
a9caddb3
Pipeline
#60317
passed with stage
in 50 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
VadereState/src/org/vadere/state/scenario/ScenarioElement.java
...eState/src/org/vadere/state/scenario/ScenarioElement.java
+1
-3
VadereState/src/org/vadere/state/scenario/Teleporter.java
VadereState/src/org/vadere/state/scenario/Teleporter.java
+5
-0
No files found.
VadereState/src/org/vadere/state/scenario/ScenarioElement.java
View file @
024057fa
...
...
@@ -8,9 +8,7 @@ public abstract class ScenarioElement {
public
abstract
VShape
getShape
();
public
void
setShape
(
VShape
newShape
)
{
throw
new
UnsupportedOperationException
(
"This concrete scenario element does not support setting the shape."
);
}
public
abstract
void
setShape
(
VShape
newShape
);
public
abstract
int
getId
();
...
...
VadereState/src/org/vadere/state/scenario/Teleporter.java
View file @
024057fa
...
...
@@ -28,6 +28,11 @@ public class Teleporter extends ScenarioElement {
throw
new
UnsupportedOperationException
(
"A teleporter does not have a shape."
);
}
@Override
public
void
setShape
(
VShape
newShape
)
{
throw
new
UnsupportedOperationException
(
"A teleporter does not have a shape."
);
}
@Override
public
int
getId
()
{
return
-
1
;
...
...
Write
Preview
Markdown
is supported
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