mirror of
https://github.com/opentripplanner/OpenTripPlanner.git
synced 2026-04-03 05:51:24 +02:00
Replace new HashMap<>(n) / new HashSet<>(n) with the Java 19+ factory methods HashMap.newHashMap(n) / HashSet.newHashSet(n) which correctly account for the 0.75 load factor. Also pre-size ArrayLists and HashMaps where the element count is known at construction time. |
||
|---|---|---|
| .. | ||
| java/org/opentripplanner/utils | ||