Skip to content

Commit dfe0534

Browse files
committed
Mutability PR feedback.
1 parent 546fa87 commit dfe0534

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/sdk/server/src/main/java/com/launchdarkly/sdk/server/FDv2DataSource.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ public FDv2DataSource(
8888
List<SynchronizerFactoryWithState> synchronizerFactories = synchronizers
8989
.stream()
9090
.map(SynchronizerFactoryWithState::new)
91-
.collect(Collectors.toList());
91+
// Collect to an ArrayList to ensure mutability.
92+
.collect(Collectors.toCollection(ArrayList::new));
9293

9394
// If we have a fdv1 data source factory, then add that to the synchronizer factories in a blocked state.
9495
// If we receive a request to fallback, then we will unblock it and block all other synchronizers.

0 commit comments

Comments
 (0)