Verwijderen overbodige exceptions

This commit is contained in:
Leen Dereu
2018-05-24 16:43:57 +02:00
parent 91899be62c
commit 4b4667296e
3 changed files with 3 additions and 3 deletions

View File

@@ -170,7 +170,7 @@ public abstract class GameObject {
* @post ... * @post ...
* |new.getLocation() == Coordinate.create(location) * |new.getLocation() == Coordinate.create(location)
*/ */
protected void setLocation(double[] location) throws IllegalArgumentException { protected void setLocation(double[] location) {
setLocation(Coordinate.create(location)); setLocation(Coordinate.create(location));
} }

View File

@@ -489,7 +489,7 @@ public class World {
* *
* @throws NullPointerException * @throws NullPointerException
*/ */
public boolean hasAsGameObject(GameObject obj) throws NullPointerException { public boolean hasAsGameObject(GameObject obj) {
return getGameObjects().contains(obj); return getGameObjects().contains(obj);
} }

View File

@@ -25,7 +25,7 @@ public class Coordinate extends Tuple<Double, Double> {
* @throws IllegalArgumentException ... * @throws IllegalArgumentException ...
* | * |
*/ */
public Coordinate(double coordinateX, double coordinateY) throws IllegalArgumentException { public Coordinate(double coordinateX, double coordinateY) {
super(coordinateX, coordinateY); super(coordinateX, coordinateY);
} }