changeset 46054:628e233b569c

8185623: (se) AbstractSelector.selectorOpen is not published safely Summary: Make 'selectorOpen' instance variable final Reviewed-by: chegar
author bpb
date Tue, 01 Aug 2017 16:08:17 -0700
parents 6f7e93cb432a
children b0170078a6c7
files jdk/src/java.base/share/classes/java/nio/channels/spi/AbstractSelector.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/java.base/share/classes/java/nio/channels/spi/AbstractSelector.java	Tue Aug 01 15:30:13 2017 -0700
+++ b/jdk/src/java.base/share/classes/java/nio/channels/spi/AbstractSelector.java	Tue Aug 01 16:08:17 2017 -0700
@@ -70,7 +70,7 @@
     extends Selector
 {
 
-    private AtomicBoolean selectorOpen = new AtomicBoolean(true);
+    private final AtomicBoolean selectorOpen = new AtomicBoolean(true);
 
     // The provider that created this selector
     private final SelectorProvider provider;