[Patch][gui] javax.swing.JPasswordField

Michael Koch konqueror@gmx.de
Tue Dec 14 07:35:00 GMT 2004


Hi list,


I just commited the attached patchto improve some javadoc comments in
javax.swing.JPasswordField.


Michael


2004-12-13  Michael Koch  <konqueror@gmx.de>

	* javax/swing/JPasswordField.java: Updated javadocs.

-------------- next part --------------
Index: javax/swing/JPasswordField.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/JPasswordField.java,v
retrieving revision 1.4.2.4
diff -u -r1.4.2.4 JPasswordField.java
--- javax/swing/JPasswordField.java	23 Nov 2004 16:33:43 -0000	1.4.2.4
+++ javax/swing/JPasswordField.java	13 Dec 2004 20:36:15 -0000
@@ -47,9 +47,10 @@
 import javax.swing.text.Document;
 
 /**
- * JPasswordField
- * @author	Andrew Selkirk
- * @version	1.0
+ * class JPasswordField
+ * 
+ * @author Andrew Selkirk
+ * @version 1.0
  */
 public class JPasswordField extends JTextField
 {
@@ -69,6 +70,7 @@
 
     /**
      * getAccessibleRole
+     * 
      * @return AccessibleRole
      */
     public AccessibleRole getAccessibleRole()
@@ -83,7 +85,7 @@
   private char echoChar = 0;
 
   /**
-   * Constructor JPasswordField
+   * Creates a <code>JPasswordField</code> object.
    */
   public JPasswordField()
   {
@@ -240,7 +242,7 @@
    */
   public char[] getPassword()
   {
-    return null; // TODO
+    return new char[0]; // TODO
   }
 
   /**


More information about the Java-patches mailing list