Skip to content

Commit a9c6fc9

Browse files
committed
review: Correct typos in comments related to itinerary normalization
1 parent e8f7829 commit a9c6fc9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

application/src/main/java/org/opentripplanner/model/plan/Itinerary.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ public class Itinerary implements ItinerarySortKey {
9494
Itinerary(ItineraryBuilder builder) {
9595
this.legs = List.copyOf(builder.legs);
9696

97-
// Normalize (round to seconds) to make sure insignificant small diffrenses does not
98-
// have an efect when comparing itineraries in the filter-chain and in paging
97+
// Normalize (round to seconds) to make sure insignificant small differences do not
98+
// have an effect when comparing itineraries in the filter-chain and in paging
9999
this.generalizedCost = builder.calculateGeneralizedCostWithoutPenalty().normalize();
100100
this.generalizedCost2 = builder.generalizedCost2;
101101

application/src/main/java/org/opentripplanner/model/plan/paging/cursor/PageCursorSerializer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ public static String encode(PageCursor cursor) {
5353
.withEnum(SORT_ORDER_FIELD, cursor.originalSortOrder());
5454

5555
if (cursor.containsItineraryPageCut()) {
56-
// Note! For this to work properly we needt to preserve the same presission for time
57-
// and cost, that we use for comparing itnineraries in the filter-chain. This is enforced
58-
// when creating a itinerary - cost and times are normilized to seconds resolution.
56+
// Note! For this to work properly we need to preserve the same precision for time
57+
// and cost, that we use for comparing itineraries in the filter-chain. This is enforced
58+
// when creating an itinerary - cost and times are normalized to seconds resolution.
5959
var cut = cursor.itineraryPageCut();
6060
tokenBuilder
6161
.withBoolean(CUT_ON_STREET_FIELD, cut.isStreetOnly())

0 commit comments

Comments
 (0)