Skip to content

Commit fcd9293

Browse files
t2granleonardehrenfriedoptionsome
authored
Apply suggestions from code review
Co-authored-by: Leonard Ehrenfried <[email protected]> Co-authored-by: Joel Lappalainen <[email protected]>
1 parent 1bded30 commit fcd9293

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

application/src/main/java/org/opentripplanner/model/plan/leg/ScheduledTransitLeg.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

application/src/main/java/org/opentripplanner/model/plan/leg/ScheduledTransitLegBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
public 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

application/src/test/java/org/opentripplanner/model/plan/leg/ScheduledTransitLegTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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());

0 commit comments

Comments
 (0)