summaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes/javax
diff options
context:
space:
mode:
Diffstat (limited to 'src/nativewindow/classes/javax')
-rw-r--r--src/nativewindow/classes/javax/media/nativewindow/awt/AWTWindowClosingProtocol.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nativewindow/classes/javax/media/nativewindow/awt/AWTWindowClosingProtocol.java b/src/nativewindow/classes/javax/media/nativewindow/awt/AWTWindowClosingProtocol.java
index 7112f944d..e7db942e4 100644
--- a/src/nativewindow/classes/javax/media/nativewindow/awt/AWTWindowClosingProtocol.java
+++ b/src/nativewindow/classes/javax/media/nativewindow/awt/AWTWindowClosingProtocol.java
@@ -51,6 +51,7 @@ public class AWTWindowClosingProtocol implements WindowClosingProtocol {
}
class WindowClosingAdapter extends WindowAdapter {
+ @Override
public void windowClosing(WindowEvent e) {
int op = AWTWindowClosingProtocol.this.getDefaultCloseOperation();
@@ -80,7 +81,7 @@ public class AWTWindowClosingProtocol implements WindowClosingProtocol {
* @return
*/
public final boolean addClosingListenerOneShot() {
- if(!closingListenerSet) {
+ if(!closingListenerSet) { // volatile: ok
synchronized(closingListenerLock) {
if(!closingListenerSet) {
closingListenerSet=addClosingListenerImpl();
@@ -92,7 +93,7 @@ public class AWTWindowClosingProtocol implements WindowClosingProtocol {
}
public final boolean removeClosingListener() {
- if(closingListenerSet) {
+ if(closingListenerSet) { // volatile: ok
synchronized(closingListenerLock) {
if(closingListenerSet) {
Window w = AWTMisc.getWindow(comp);