Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ public int hashCode() {

/**
* The natural key of a TripPatternForDate is the pair (routing trip pattern id, service date).
* TODO: align equals and hashcode to use only the pair (routing trip pattern id, service date)
*/
@Override
public boolean equals(Object o) {
Expand All @@ -180,12 +179,7 @@ public boolean equals(Object o) {
}
TripPatternForDate that = (TripPatternForDate) o;

return (
tripPattern.equals(that.tripPattern) &&
serviceDate.equals(that.serviceDate) &&
Arrays.equals(tripTimes, that.tripTimes) &&
Arrays.equals(frequencies, that.frequencies)
);
return (tripPattern.equals(that.tripPattern) && serviceDate.equals(that.serviceDate));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import static au.com.origin.snapshots.SnapshotMatcher.expect;
import static java.time.format.DateTimeFormatter.ISO_LOCAL_TIME;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;

import au.com.origin.snapshots.serializers.SerializerType;
import au.com.origin.snapshots.serializers.SnapshotSerializer;
Expand Down
Loading