Skip to content

Commit e6c31e6

Browse files
committed
removed old string return value
1 parent b4a0f8e commit e6c31e6

File tree

2 files changed

+7
-18
lines changed

2 files changed

+7
-18
lines changed

src/ext/java/org/opentripplanner/ext/vectortiles/layers/stops/DigitransitRealtimeStopPropertyMapper.java

+1-7
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,7 @@ protected Collection<KeyValue> map(RegularStop stop) {
3535
Collection<KeyValue> sharedKeyValues = getBaseKeyValues(stop, i18NStringMapper, transitService);
3636
return ListUtils.combine(
3737
sharedKeyValues,
38-
List.of(
39-
new KeyValue("closedByServiceAlert", noServiceAlert),
40-
new KeyValue(
41-
"parentStation",
42-
stop.getParentStation() != null ? stop.getParentStation().getId() : null
43-
)
44-
)
38+
List.of(new KeyValue("closedByServiceAlert", noServiceAlert))
4539
);
4640
}
4741
}

src/ext/java/org/opentripplanner/ext/vectortiles/layers/stops/DigitransitStopPropertyMapper.java

+6-11
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,7 @@ protected static DigitransitStopPropertyMapper create(
3535

3636
@Override
3737
protected Collection<KeyValue> map(RegularStop stop) {
38-
Collection<KeyValue> sharedKeyValues = getBaseKeyValues(stop, i18NStringMapper, transitService);
39-
return ListUtils.combine(
40-
sharedKeyValues,
41-
List.of(
42-
new KeyValue(
43-
"parentStation",
44-
stop.getParentStation() != null ? stop.getParentStation().getId() : "null"
45-
)
46-
)
47-
);
38+
return getBaseKeyValues(stop, i18NStringMapper, transitService);
4839
}
4940

5041
protected static Collection<KeyValue> getBaseKeyValues(
@@ -59,7 +50,11 @@ protected static Collection<KeyValue> getBaseKeyValues(
5950
new KeyValue("platform", stop.getPlatformCode()),
6051
new KeyValue("desc", i18NStringMapper.mapToApi(stop.getDescription())),
6152
new KeyValue("type", getType(transitService, stop)),
62-
new KeyValue("routes", getRoutes(transitService, stop))
53+
new KeyValue("routes", getRoutes(transitService, stop)),
54+
new KeyValue(
55+
"parentStation",
56+
stop.getParentStation() != null ? stop.getParentStation().getId() : null
57+
)
6358
);
6459
}
6560

0 commit comments

Comments
 (0)