Checkstyle

This commit is contained in:
Arne Keller 2020-03-06 16:30:33 +01:00
parent 0e298492a3
commit 036847553d

View File

@ -16,7 +16,7 @@ import java.util.stream.Collectors;
* @author Arne Keller * @author Arne Keller
* @version 1.1 * @version 1.1
*/ */
public final class Train implements Comparable { public final class Train implements Comparable<Train> {
/** /**
* Separator between rolling stocks in {@link #show()}. * Separator between rolling stocks in {@link #show()}.
*/ */
@ -370,7 +370,7 @@ public final class Train implements Comparable {
} }
@Override @Override
public int compareTo(Object o) { public int compareTo(Train other) {
return Integer.compare(this.identifier, ((Train) o).identifier); return Integer.compare(this.identifier, other.identifier);
} }
} }