mirror of
https://gitlab.com/arnekeller/kit-programmieren-ws1920-final1.git
synced 2024-11-24 01:15:05 +00:00
Checkstyle
This commit is contained in:
parent
0e298492a3
commit
036847553d
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user