File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
application/src/main/java/org/opentripplanner/model/plan Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ())
You can’t perform that action at this time.
0 commit comments