diff --git a/src/edu/kit/informatik/model/Train.java b/src/edu/kit/informatik/model/Train.java index fecbe56..3212324 100644 --- a/src/edu/kit/informatik/model/Train.java +++ b/src/edu/kit/informatik/model/Train.java @@ -16,7 +16,7 @@ import java.util.stream.Collectors; * @author Arne Keller * @version 1.1 */ -public final class Train implements Comparable { +public final class Train implements Comparable { /** * Separator between rolling stocks in {@link #show()}. */ @@ -370,7 +370,7 @@ public final class Train implements Comparable { } @Override - public int compareTo(Object o) { - return Integer.compare(this.identifier, ((Train) o).identifier); + public int compareTo(Train other) { + return Integer.compare(this.identifier, other.identifier); } }