Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Johan Torin <[email protected]>
  • Loading branch information
2 people authored and optionsome committed Mar 1, 2024
1 parent 824434c commit 24807b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
import javax.annotation.Nonnull;

/**
* This array builder is used to minimize creating new objects(arrays). It takes an array as base,
* This array builder is used to minimize the creation of new objects (arrays). It takes an array as base,
* the original array. A new array is created only if there are differences.
* <p>
* A common case is that one original is updated several times. In this case, you can use the
* {@link #build(Object[])}, too also make sure the existing update is reused (deduplicated).
* {@link #build(Object[])} method to also make sure that the existing update is reused (deduplicated).
* <p>
* Arrays are mutable, so be careful this class helps you reuse the original if it has the same
* Arrays are mutable, so be careful as this class helps you reuse the original if it has the same
* values. It protects the original while in scope, but you should only use it if you do not
* modify the original or the result on the outside. This builder does not help protect the arrays.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public StopPattern getStopPattern() {

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

0 comments on commit 24807b1

Please sign in to comment.