We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 546fa87 commit dfe0534Copy full SHA for dfe0534
lib/sdk/server/src/main/java/com/launchdarkly/sdk/server/FDv2DataSource.java
@@ -88,7 +88,8 @@ public FDv2DataSource(
88
List<SynchronizerFactoryWithState> synchronizerFactories = synchronizers
89
.stream()
90
.map(SynchronizerFactoryWithState::new)
91
- .collect(Collectors.toList());
+ // Collect to an ArrayList to ensure mutability.
92
+ .collect(Collectors.toCollection(ArrayList::new));
93
94
// If we have a fdv1 data source factory, then add that to the synchronizer factories in a blocked state.
95
// If we receive a request to fallback, then we will unblock it and block all other synchronizers.
0 commit comments