This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

java.awt.DisplayMode


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello list,


I have made the DisplayMode class API compatible to the JDK. Please
review and comment.

When this get approved it can be commited to gcc 3.3 branch and to
classpath cvs.

Tom: Can you please commit it when it gets approved ?


Regards,
Michael
- --
Homepage: http://www.worldforge.org/
GPG-key: http://konqueror.dyndns.org/~mkoch/michael.gpg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+HnEfWSOgCCdjSDsRAguHAJ9T92ss3HbW+yUAu8MoR9YZZDvFTwCgigKw
iZWfFSaYD8d7dVhNbOKgO9M=
=bDo+
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.1624
diff -b -u -r1.1624 ChangeLog
--- ChangeLog	7 Jan 2003 16:50:06 -0000	1.1624
+++ ChangeLog	10 Jan 2003 06:50:20 -0000
@@ -1,3 +1,8 @@
+2003-01-10  Michael Koch  <konqueror@gmx.de>
+
+	* java/awt/DisplayMode.java
+	(equals): Fixed argument type and implementation.
+ 
 2003-01-07  Tom Tromey  <tromey@redhat.com>
 
 	* include/posix.h (_Jv_platform_usleep): Wrap in ifdef
Index: java/awt/DisplayMode.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/DisplayMode.java,v
retrieving revision 1.1
diff -b -u -r1.1 DisplayMode.java
--- java/awt/DisplayMode.java	9 Aug 2002 04:26:14 -0000	1.1
+++ java/awt/DisplayMode.java	10 Jan 2003 06:50:20 -0000
@@ -140,16 +140,16 @@
    * Test for equality. This returns true for two modes with identical
    * parameters.
    *
-   * @param o the object to compare to
+   * @param dm The display mode to compare to
+   *
    * @return true if it is equal
    */
-  public boolean equals(Object o)
+  public boolean equals (DisplayMode dm)
   {
-    if (! (o instanceof DisplayMode))
-      return false;
-    DisplayMode m = (DisplayMode) o;
-    return width == m.width && height == m.height && bitDepth == m.bitDepth
-      && refreshRate == m.refreshRate;
+    return width == dm.width
+      && height == dm.height
+      && bitDepth == dm.bitDepth
+      && refreshRate == dm.refreshRate;
   }
 
   /**

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]