< prev index next >

src/share/classes/javax/swing/JTextField.java

Print this page
rev 1527 : 6727662: Code improvement and warnings removing from swing packages
Summary: Removed unnecessary castings and other warnings
Reviewed-by: malenkov

*** 473,484 **** * @return all of the <code>ActionListener</code>s added or an empty * array if no listeners have been added * @since 1.4 */ public synchronized ActionListener[] getActionListeners() { ! return (ActionListener[])listenerList.getListeners( ! ActionListener.class); } /** * Notifies all listeners that have registered interest for * notification on this event type. The event instance --- 473,483 ---- * @return all of the <code>ActionListener</code>s added or an empty * array if no listeners have been added * @since 1.4 */ public synchronized ActionListener[] getActionListeners() { ! return listenerList.getListeners(ActionListener.class); } /** * Notifies all listeners that have registered interest for * notification on this event type. The event instance
< prev index next >