From 036847553d2f1782f078b851faaccd06566114e0 Mon Sep 17 00:00:00 2001 From: Arne Keller Date: Fri, 6 Mar 2020 16:30:33 +0100 Subject: [PATCH] Checkstyle --- src/edu/kit/informatik/model/Train.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } }