src/share/classes/java/awt/MenuItem.java

Print this page

        

@@ -539,11 +539,11 @@
      * @see        java.awt.event.ActionEvent
      * @see        java.awt.event.ActionListener
      * @since 1.4
      */
     public synchronized ActionListener[] getActionListeners() {
-        return (ActionListener[])(getListeners(ActionListener.class));
+        return getListeners(ActionListener.class);
     }
 
     /**
      * Returns an array of all the objects currently registered
      * as <code><em>Foo</em>Listener</code>s