This patch (committed) fixes a couple of bad API doc tags:

2006-03-14  David Gilbert  <[EMAIL PROTECTED]>

        * javax/swing/tree/TreeNode.java: Fixed bad API doc tags,
        * javax/swing/tree/TreePath.java: Likewise.

Regards,

Dave
Index: javax/swing/tree/TreeNode.java
===================================================================
RCS file: /sources/classpath/classpath/javax/swing/tree/TreeNode.java,v
retrieving revision 1.6
diff -u -r1.6 TreeNode.java
--- javax/swing/tree/TreeNode.java      7 Mar 2006 11:10:09 -0000       1.6
+++ javax/swing/tree/TreeNode.java      14 Mar 2006 10:32:37 -0000
@@ -88,7 +88,7 @@
    * Returns <code>true</code> if this node allows children, and 
    * <code>false</code> otherwise.
    * 
-   * @returns A boolean.
+   * @return A boolean.
    */
   boolean getAllowsChildren();
 
Index: javax/swing/tree/TreePath.java
===================================================================
RCS file: /sources/classpath/classpath/javax/swing/tree/TreePath.java,v
retrieving revision 1.8
diff -u -r1.8 TreePath.java
--- javax/swing/tree/TreePath.java      15 Jul 2005 16:15:53 -0000      1.8
+++ javax/swing/tree/TreePath.java      14 Mar 2006 10:32:37 -0000
@@ -1,5 +1,5 @@
 /* TreePath.java --
-   Copyright (C) 2002, 2005  Free Software Foundation, Inc.
+   Copyright (C) 2002, 2005, 2006,  Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -153,8 +153,8 @@
    * 
    * @param object  the object (<code>null</code> permitted).
    * 
-   * @returns <code>true</code> if <code>obj</code> is equal to this tree path,
-   *          and <code>false</code> otherwise.
+   * @return <code>true</code> if <code>obj</code> is equal to this tree path,
+   *         and <code>false</code> otherwise.
    */
   public boolean equals(Object object)
   {
@@ -196,7 +196,7 @@
   /**
    * Returns an array containing the path elements.
    * 
-   * @returns An array containing the path elements.
+   * @return An array containing the path elements.
    */
   public Object[] getPath()
   {
@@ -216,7 +216,7 @@
   /**
    * Returns the number of elements in the path.
    * 
-   * @returns The number of elements in the path.
+   * @return The number of elements in the path.
    */
   public int getPathCount()
   {
@@ -248,8 +248,8 @@
    * 
    * @param path  the path to check (<code>null</code> permitted).
    * 
-   * @returns <code>true</code> if <code>path</code> is a descendant of this
-   *          path, and <code>false</code> otherwise
+   * @return <code>true</code> if <code>path</code> is a descendant of this
+   *         path, and <code>false</code> otherwise
    */
   public boolean isDescendant(TreePath path)
   {
@@ -272,7 +272,7 @@
    * 
    * @param element  the element.
    * 
-   * @returns A tree path.
+   * @return A tree path.
    */
   public TreePath pathByAddingChild(Object element)
   {
@@ -284,8 +284,8 @@
    * as this path, except for the last one.  If this path contains only one
    * element, the method returns <code>null</code>.
    * 
-   * @returns The parent path, or <code>null</code> if this path has only one
-   *          element.
+   * @return The parent path, or <code>null</code> if this path has only one
+   *         element.
    */
   public TreePath getParentPath()
   {

Reply via email to