File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
main/java/org/opentripplanner/model/plan/leg
test/java/org/opentripplanner/model/plan/leg Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public class ScheduledTransitLeg implements TransitLeg {
5757 private final Set <TransitAlert > transitAlerts ;
5858 private final ConstrainedTransfer transferFromPrevLeg ;
5959 private final ConstrainedTransfer transferToNextLeg ;
60- // the posistions are protected to avoid boxing/unboxing when used in subclasses
60+ // the positions are protected to avoid boxing/unboxing when used in subclasses
6161 protected final int boardStopPosInPattern ;
6262 protected final int alightStopPosInPattern ;
6363 private final int generalizedCost ;
Original file line number Diff line number Diff line change 1616public class ScheduledTransitLegBuilder <B extends ScheduledTransitLegBuilder <B >> {
1717
1818 /**
19- * The Position in pattern is initialized to a negative value. Negative valued are not allowed,
19+ * The position in pattern is initialized to a negative value. Negative valued are not allowed,
2020 * so if not set by the caller the build() method will fail.
2121 */
2222 private static final int POS_NOT_SET = -1 ;
@@ -59,7 +59,7 @@ public ScheduledTransitLegBuilder(ScheduledTransitLeg original) {
5959 distanceMeters = original .distanceMeters ();
6060 fareProducts = original .fareProducts ();
6161
62- // Sandbox fiels
62+ // Sandbox fields
6363 accessibilityScore = original .accessibilityScore ();
6464 }
6565
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ void testMinimalSetOfFieldsSet() {
108108 assertEquals (Cost .ZERO .toSeconds (), subject .generalizedCost ());
109109 assertEquals (DISTANCE , subject .distanceMeters ());
110110
111- // None inizialized fields
111+ // Uninitialized fields
112112 assertFalse (subject .isRealTimeUpdated ());
113113 assertEquals (Set .of (), subject .listTransitAlerts ());
114114 assertEquals (List .of (), subject .fareProducts ());
You can’t perform that action at this time.
0 commit comments