Skip to content

Commit cf34c77

Browse files
Update src/test/java/dev/openfeature/sdk/testutils/TestFlagsUtils.java
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Simon Schrottner <[email protected]>
1 parent 71951f8 commit cf34c77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/dev/openfeature/sdk/testutils/TestFlagsUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class TestFlagsUtils {
3939
*
4040
* @return map of flags
4141
*/
42-
public static Map<String, Flag<?>> buildFlags() {
42+
public static synchronized Map<String, Flag<?>> buildFlags() {
4343
if (flags == null) {
4444
ObjectMapper objectMapper = new ObjectMapper();
4545
objectMapper.configure(StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION.mappedFeature(), true);

0 commit comments

Comments
 (0)