--- a/src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/StreamConfiguration.java Tue Sep 17 19:37:49 2019 +0200
+++ b/src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/StreamConfiguration.java Wed Sep 18 03:45:46 2019 +0200
@@ -23,14 +23,14 @@
long startNanos = 0;
long endNanos = Long.MAX_VALUE;
- volatile boolean changed = true;
+ private volatile boolean changed = true;
public synchronized boolean remove(Object action) {
boolean removed = false;
removed |= flushActions.removeIf(e -> e == action);
removed |= closeActions.removeIf(e -> e == action);
removed |= errorActions.removeIf(e -> e == action);
- removed |= eventActions.removeIf(e -> e.action == action);
+ removed |= eventActions.removeIf(e -> e.getAction() == action);
if (removed) {
changed = true;
}
@@ -96,8 +96,4 @@
public boolean hasChanged() {
return changed;
}
-
- public synchronized void clearChanged() {
- changed = false;
- }
-}
+}
\ No newline at end of file