Hello,

I have commited the attached little patch to fix a method in 
java.awt.Displaymode and some documentation.


Michael
-- 
Homepage: http://www.worldforge.org/
GPG-key: http://konqueror.dyndns.org/~mkoch/michael.gpg
Index: ChangeLog
===================================================================
RCS file: /cvsroot/classpath/classpath/ChangeLog,v
retrieving revision 1.611
diff -u -b -r1.611 ChangeLog
--- ChangeLog	25 Sep 2002 21:08:45 -0000	1.611
+++ ChangeLog	26 Sep 2002 05:26:22 -0000
@@ -1,3 +1,14 @@
+2002-09-26  Michael Koch  <[EMAIL PROTECTED]>
+
+	* java/awt/Choice.java
+	(remove): Fix exception documentation.
+	(select): Fix exception documentation.
+	* java/awt/Container.java
+	(add): Fix exception documentation.
+	(addImpl): Fix exception documentation.
+	* java/awt/DisplayMode.java
+	(equals): Fix argument type.
+
 2002-09-25  Jesse Rosenstock  <[EMAIL PROTECTED]>
 
 	* java/util/TimeZone.java (getDSTSavings): New method.
Index: java/awt/Choice.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/Choice.java,v
retrieving revision 1.8
diff -u -b -r1.8 Choice.java
--- java/awt/Choice.java	6 May 2002 16:19:19 -0000	1.8
+++ java/awt/Choice.java	26 Sep 2002 05:26:22 -0000
@@ -215,7 +215,7 @@
   *
   * @param item The item to remove.
   *
-  * @param IllegalArgumentException If the specified item doesn't exist.
+  * @exception IllegalArgumentException If the specified item doesn't exist.
   */
 public synchronized void
 remove(String item)
@@ -234,7 +234,7 @@
   *
   * @param index The index of the item to remove.
   *
-  * @exception ArrayIndexOutOfBoundsException If the index is not valid.
+  * @exception IndexOutOfBoundsException If the index is not valid.
   */
 public synchronized void
 remove(int index)
@@ -325,7 +325,7 @@
   *
   * @param index The index of the row to make selected.
   *
-  * @param IllegalArgumentException If the specified index is invalid.
+  * @exception IllegalArgumentException If the specified index is invalid.
   */
 public synchronized void
 select(int index)
Index: java/awt/Container.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/Container.java,v
retrieving revision 1.11
diff -u -b -r1.11 Container.java
--- java/awt/Container.java	8 May 2002 03:07:24 -0000	1.11
+++ java/awt/Container.java	26 Sep 2002 05:26:23 -0000
@@ -205,7 +205,7 @@
    *
    * @return The same component that was added.
    *
-   * @param throws ArrayIndexOutOfBounds If the specified index is invalid.
+   * @throws ArrayIndexOutOfBounds If the specified index is invalid.
    */
   public Component add(Component comp, int index)
   {
@@ -236,7 +236,7 @@
    * @param index The index in the component list to insert this child
    * at, or -1 to add at the end of the list.
    *
-   * @param throws ArrayIndexOutOfBounds If the specified index is invalid.
+   * @throws ArrayIndexOutOfBounds If the specified index is invalid.
    */
   public void add(Component comp, Object constraints, int index)
   {
@@ -256,7 +256,7 @@
    * @param index The index in the component list to insert this child
    * at, or -1 to add at the end of the list.
    *
-   * @param throws ArrayIndexOutOfBounds If the specified index is invalid.
+   * @throws ArrayIndexOutOfBounds If the specified index is invalid.
    */
   protected void addImpl(Component comp, Object constraints, int index)
   {
Index: java/awt/DisplayMode.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/DisplayMode.java,v
retrieving revision 1.1
diff -u -b -r1.1 DisplayMode.java
--- java/awt/DisplayMode.java	18 Mar 2002 22:40:25 -0000	1.1
+++ java/awt/DisplayMode.java	26 Sep 2002 05:26:23 -0000
@@ -143,11 +143,8 @@
    * @param o the object to compare to
    * @return true if it is equal
    */
-  public boolean equals(Object o)
+  public boolean equals(DisplayMode m)
   {
-    if (! (o instanceof DisplayMode))
-      return false;
-    DisplayMode m = (DisplayMode) o;
     return width == m.width && height == m.height && bitDepth == m.bitDepth
       && refreshRate == m.refreshRate;
   }

Reply via email to