additional changes to reduce concurrency risk

This commit is contained in:
mnbogner
2025-04-01 17:59:21 -07:00
committed by Torsten Grote
parent 26e1e1f183
commit 621bd7a5e4
3 changed files with 19 additions and 16 deletions

View File

@@ -166,7 +166,7 @@ public class PreferencesTest {
Preferences preferences = Preferences.get();
// serialize an empty map
preferences.setMirrorErrorData(new HashMap<>(0));
HashMap<String, Integer> result = preferences.getMirrorErrorData();
Map<String, Integer> result = preferences.getMirrorErrorData();
// deserializing should return an empty map without throwing any exceptions
assertNotNull(result);
assertEquals(result.size(), 0);