Skip to content

Commit

Permalink
replace null with empty enum set
Browse files Browse the repository at this point in the history
in addition to fix in pr #144
  • Loading branch information
FabiKo117 authored and tyrasd committed Mar 18, 2021
1 parent bbfbdf3 commit 8a0a8f1
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.io.Serializable;
import java.util.Collections;
import java.util.EnumSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -175,9 +176,9 @@ public List<Feature> buildUnchangedFeatures(OSMEntitySnapshot snapshot) {
boolean addToOutput = addEntityToOutput(isContainingSimpleFeatureTypes, utils,
simpleFeatureTypes, geom);
if (addToOutput) {
return Collections.singletonList(
exeUtils.createOSMFeature(entity, geom.get(), properties, keysInt, includeTags,
includeOSMMetadata, isContributionsEndpoint, elementsGeometry, null));
return Collections.singletonList(exeUtils.createOSMFeature(entity, geom.get(), properties,
keysInt, includeTags, includeOSMMetadata, isContributionsEndpoint, elementsGeometry,
EnumSet.noneOf(ContributionType.class)));
} else {
return Collections.emptyList();
}
Expand Down

0 comments on commit 8a0a8f1

Please sign in to comment.