< prev index next >

src/jdk.accessibility/share/classes/com/sun/java/accessibility/util/AccessibilityEventMonitor.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -126,11 +126,11 @@
          * upon the current topLevelWindows cached by EventQueueMonitor.
          * @see EventQueueMonitor
          * @see AWTEventMonitor
          */
         protected void installListeners() {
-            Window topLevelWindows[] = EventQueueMonitor.getTopLevelWindows();
+            Window[] topLevelWindows = EventQueueMonitor.getTopLevelWindows();
             if (topLevelWindows != null) {
                 for (int i = 0; i < topLevelWindows.length; i++) {
                     if (topLevelWindows[i] instanceof Accessible) {
                         installListeners((Accessible) topLevelWindows[i]);
                     }

@@ -204,11 +204,11 @@
          * upon the topLevelWindows cached by EventQueueMonitor.
          * @param eventID the event ID
          * @see EventID
          */
         protected void removeListeners() {
-            Window topLevelWindows[] = EventQueueMonitor.getTopLevelWindows();
+            Window[] topLevelWindows = EventQueueMonitor.getTopLevelWindows();
             if (topLevelWindows != null) {
                 for (int i = 0; i < topLevelWindows.length; i++) {
                     if (topLevelWindows[i] instanceof Accessible) {
                         removeListeners((Accessible) topLevelWindows[i]);
                     }
< prev index next >