Verwijderen overbodige exceptions
This commit is contained in:
@@ -170,7 +170,7 @@ public abstract class GameObject {
|
||||
* @post ...
|
||||
* |new.getLocation() == Coordinate.create(location)
|
||||
*/
|
||||
protected void setLocation(double[] location) throws IllegalArgumentException {
|
||||
protected void setLocation(double[] location) {
|
||||
|
||||
setLocation(Coordinate.create(location));
|
||||
}
|
||||
|
@@ -489,7 +489,7 @@ public class World {
|
||||
*
|
||||
* @throws NullPointerException
|
||||
*/
|
||||
public boolean hasAsGameObject(GameObject obj) throws NullPointerException {
|
||||
public boolean hasAsGameObject(GameObject obj) {
|
||||
return getGameObjects().contains(obj);
|
||||
}
|
||||
|
||||
|
@@ -25,7 +25,7 @@ public class Coordinate extends Tuple<Double, Double> {
|
||||
* @throws IllegalArgumentException ...
|
||||
* |
|
||||
*/
|
||||
public Coordinate(double coordinateX, double coordinateY) throws IllegalArgumentException {
|
||||
public Coordinate(double coordinateX, double coordinateY) {
|
||||
super(coordinateX, coordinateY);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user