Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cbce34f

Browse files
refactor(ParentStationValidator): Fix var typo.
1 parent 144d5c1 commit cbce34f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/com/conveyal/gtfs/validator/ParentStationValidator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@ public ParentStationValidator(Feed feed, SQLErrorStorage errorStorage) {
2828

2929
@Override
3030
public void validate () {
31-
Multimap<String, Stop> stopsForparentStations = HashMultimap.create();
31+
Multimap<String, Stop> stopsForParentStations = HashMultimap.create();
3232
Set<String> stopIds = new HashSet<>();
3333
for (Stop stop : feed.stops) {
3434
// Collect all stop_ids found in feed.
3535
stopIds.add(stop.stop_id);
3636
// Collect all non-null parent_station values.
3737
if (stop.parent_station != null) {
38-
stopsForparentStations.put(stop.parent_station, stop);
38+
stopsForParentStations.put(stop.parent_station, stop);
3939
}
4040
}
4141
// Find parent_station values that do not reference a valid stop_id from feed.
42-
Sets.SetView<String> badReferences = Sets.difference(stopsForparentStations.keySet(), stopIds);
42+
Sets.SetView<String> badReferences = Sets.difference(stopsForParentStations.keySet(), stopIds);
4343
for (String parentStation : badReferences) {
4444
// For any bad parent_station ref (this could be more than one stop), add an error to the error storage.
45-
Collection<Stop> stops = stopsForparentStations.get(parentStation);
45+
Collection<Stop> stops = stopsForParentStations.get(parentStation);
4646
for (Stop stop : stops) {
4747
registerError(
4848
NewGTFSError

0 commit comments

Comments
 (0)