Skip to content

Commit ca8ff64

Browse files
committed
Remove unnecessary volatile modifiers
1 parent d33858f commit ca8ff64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/engineering/swat/watch/impl/mac/NativeEventStream.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ public class NativeEventStream implements Closeable {
8484
private static final FileSystemEvents FSE = FileSystemEvents.INSTANCE;
8585

8686
// Native memory (automatically deallocated when set to `null`)
87-
private volatile @Nullable FSEventStreamCallback callback;
88-
private volatile @Nullable Pointer stream;
89-
private volatile @Nullable Pointer queue;
87+
private @Nullable FSEventStreamCallback callback;
88+
private @Nullable Pointer stream;
89+
private @Nullable Pointer queue;
9090

9191
private final Path path;
9292
private final NativeEventHandler handler;

0 commit comments

Comments
 (0)