Skip to content

Commit ed3d05a

Browse files
t2granjtorin
andauthored
Apply suggestions from code review
Co-authored-by: Johan Torin <jtorin@users.noreply.github.com>
1 parent dd135d1 commit ed3d05a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/org/opentripplanner/framework/lang/MemEfficientArrayBuilder.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
import javax.annotation.Nonnull;
66

77
/**
8-
* This array builder is used to minimize creating new objects(arrays). It takes an array as base,
8+
* This array builder is used to minimize the creation of new objects (arrays). It takes an array as base,
99
* the original array. A new array is created only if there are differences.
1010
* <p>
1111
* A common case is that one original is updated several times. In this case, you can use the
12-
* {@link #build(Object[])}, too also make sure the existing update is reused (deduplicated).
12+
* {@link #build(Object[])} method to also make sure that the existing update is reused (deduplicated).
1313
* <p>
14-
* Arrays are mutable, so be careful this class helps you reuse the original if it has the same
14+
* Arrays are mutable, so be careful as this class helps you reuse the original if it has the same
1515
* values. It protects the original while in scope, but you should only use it if you do not
1616
* modify the original or the result on the outside. This builder does not help protect the arrays.
1717
*/

src/main/java/org/opentripplanner/transit/model/network/TripPattern.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public StopPattern getStopPattern() {
161161

162162
/**
163163
* Return the "original"/planned stop pattern as a builder. This is used when a realtime-update
164-
* contains a full set of stops/pickup/droppoff for a pattern. This will wipe out any changes
164+
* contains a full set of stops/pickup/dropoff for a pattern. This will wipe out any changes
165165
* to the stop-pattern from previous updates.
166166
* <p>
167167
* Be aware, if the same update is applied twice, then the first instance will be reused to avoid

0 commit comments

Comments
 (0)