From eef2d6b87ca77d051c6933b4682c4a9fa03cb2fb Mon Sep 17 00:00:00 2001 From: Thomas Gran Date: Wed, 3 Jul 2024 11:51:27 +0200 Subject: [PATCH] review: Fix spelling --- .../raptoradapter/transit/mappers/TransitLayerMapper.java | 2 +- .../org/opentripplanner/transit/service/StopModelIndex.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/opentripplanner/routing/algorithm/raptoradapter/transit/mappers/TransitLayerMapper.java b/src/main/java/org/opentripplanner/routing/algorithm/raptoradapter/transit/mappers/TransitLayerMapper.java index 91bdd78f396..33a076bb8d6 100644 --- a/src/main/java/org/opentripplanner/routing/algorithm/raptoradapter/transit/mappers/TransitLayerMapper.java +++ b/src/main/java/org/opentripplanner/routing/algorithm/raptoradapter/transit/mappers/TransitLayerMapper.java @@ -196,7 +196,7 @@ static int[] createStopBoardAlightTransferCosts( int[] stopBoardAlightTransferCosts = new int[stops.stopIndexSize()]; for (int i = 0; i < stops.stopIndexSize(); ++i) { - // There can be wholes in the stop index, so we need to account for 'null' here. + // There can be holes in the stop index, so we need to account for 'null' here. var stop = stops.stopByIndex(i); if (stop == null) { stopBoardAlightTransferCosts[i] = defaultCost; diff --git a/src/main/java/org/opentripplanner/transit/service/StopModelIndex.java b/src/main/java/org/opentripplanner/transit/service/StopModelIndex.java index 5c0a5d3c0f9..6b89915aa42 100644 --- a/src/main/java/org/opentripplanner/transit/service/StopModelIndex.java +++ b/src/main/java/org/opentripplanner/transit/service/StopModelIndex.java @@ -67,7 +67,7 @@ class StopModelIndex { regularStopSpatialIndex.compact(); locationIndex.compact(); - logWholesInIndex(); + logHolesInIndex(); } /** @@ -98,14 +98,14 @@ Collection findAreaStops(Envelope envelope) { * A small number of wholes in the stop-index is ok, but if there are many, it will affect * the Raptor performance. */ - private void logWholesInIndex() { + private void logHolesInIndex() { int c = (int) Arrays.stream(stopsByIndex).filter(Objects::isNull).count(); if (c > 0) { double p = (100.0 * c) / stopsByIndex.length; // Log this as warning is more than 5% of the space is null LOG .atLevel(p >= 5.0 ? Level.WARN : Level.INFO) - .log("The stop index contains wholes in it. {} of {} is null.", c, stopsByIndex.length); + .log("The stop index contains holes in it. {} of {} is null.", c, stopsByIndex.length); } } }