mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8145680: Remove unnecessary explicit initialization of volatile variables in java.base
Reviewed-by: alanb, chegar, jfranck, shade
This commit is contained in:
parent
fd85ac4b23
commit
5f1918e76e
50 changed files with 181 additions and 200 deletions
|
@ -26,8 +26,6 @@
|
|||
package java.nio.channels;
|
||||
|
||||
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;
|
||||
import java.io.IOException;
|
||||
|
||||
|
||||
/**
|
||||
* A token representing the registration of a {@link SelectableChannel} with a
|
||||
|
@ -363,7 +361,7 @@ public abstract class SelectionKey {
|
|||
|
||||
// -- Attachments --
|
||||
|
||||
private volatile Object attachment = null;
|
||||
private volatile Object attachment;
|
||||
|
||||
private static final AtomicReferenceFieldUpdater<SelectionKey,Object>
|
||||
attachmentUpdater = AtomicReferenceFieldUpdater.newUpdater(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue