< prev index next >

src/java.desktop/share/classes/javax/swing/event/MenuKeyEvent.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 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

@@ -47,11 +47,11 @@
  *
  * @author Georges Saab
  */
 @SuppressWarnings("serial")
 public class MenuKeyEvent extends KeyEvent {
-    private MenuElement path[];
+    private MenuElement[] path;
     private MenuSelectionManager manager;
 
     /**
      * Constructs a MenuKeyEvent object.
      *

@@ -69,11 +69,11 @@
      *                     to a menu item affected by the drag
      * @param m          a MenuSelectionManager object that handles selections
      */
     public MenuKeyEvent(Component source, int id, long when, int modifiers,
                         int keyCode, char keyChar,
-                        MenuElement p[], MenuSelectionManager m) {
+                        MenuElement[] p, MenuSelectionManager m) {
         super(source, id, when, modifiers, keyCode, keyChar);
         path = p;
         manager = m;
     }
 
< prev index next >