MemoryDataStore "addFeatures(FeatureCollection)" only adds 1 feature

Description

When creating a MemoryDataStore with a FeatureCollection (or calling addFeatures(FeatureCollection)), the addFeatures(FeatureCollection) method implementation does not iterate over the collection, and only 1 feature from the collection is added. This seems to have been introduced in the GeoTools 16.0 release and affects each version since.

Environment

None

Status

Assignee

Unassigned

Reporter

Erik Merkle

Triage

Fix versions

Affects versions

16.0
17.0
18.0

Priority

Low
Configure