jdk/src/share/classes/java/awt/TextComponent.java

Print this page

        

@@ -604,11 +604,11 @@
      * @see #addTextListener
      * @see #removeTextListener
      * @since 1.4
      */
     public synchronized TextListener[] getTextListeners() {
-        return (TextListener[])(getListeners(TextListener.class));
+        return getListeners(TextListener.class);
     }
 
     /**
      * Returns an array of all the objects currently registered
      * as <code><em>Foo</em>Listener</code>s