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