diff --git a/archaius2-core/src/main/java/com/netflix/archaius/instrumentation/AccessMonitorUtil.java b/archaius2-core/src/main/java/com/netflix/archaius/instrumentation/AccessMonitorUtil.java index 1edbc8ff..1ce3b5a9 100644 --- a/archaius2-core/src/main/java/com/netflix/archaius/instrumentation/AccessMonitorUtil.java +++ b/archaius2-core/src/main/java/com/netflix/archaius/instrumentation/AccessMonitorUtil.java @@ -9,7 +9,6 @@ import java.util.Arrays; import java.util.Collections; import java.util.HashMap; -import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; @@ -31,7 +30,7 @@ public class AccessMonitorUtil implements AutoCloseable { // Map from stack trace to how many times that stack trace appeared private final ConcurrentHashMap stackTrace; // Property keys that we will keep the stack traces for - private Set propertiesToTrack; + private volatile Set propertiesToTrack; // Map from property key to stack traces map for tracked properties private final ConcurrentHashMap> trackedPropertyStackTraces;