File tree 1 file changed +2
-2
lines changed
src/main/java/no/entur/antu/netexdata/collectors/activedatecollector/calender
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ private void activeDatesForDates(
177
177
if (activeDatesForDayTypeRef .containsKey (dayTypeId )) {
178
178
Optional
179
179
.ofNullable (includedAndExcludedDates .get (Boolean .TRUE ))
180
- .map (activeDatesForDayTypeRef .get (dayTypeId ).dates ()::addAll );
180
+ .ifPresent (activeDatesForDayTypeRef .get (dayTypeId ).dates ()::addAll );
181
181
}
182
182
}
183
183
}
@@ -208,7 +208,7 @@ private void activeDatesForOperatingDays(
208
208
if (activeDatesForDayTypeRef .containsKey (dayTypeId )) {
209
209
Optional
210
210
.ofNullable (includedAndExcludedDates .get (Boolean .TRUE ))
211
- .map (activeDatesForDayTypeRef .get (dayTypeId ).dates ()::addAll );
211
+ .ifPresent (activeDatesForDayTypeRef .get (dayTypeId ).dates ()::addAll );
212
212
}
213
213
}
214
214
}
You can’t perform that action at this time.
0 commit comments