2003-01-10 Michael Koch <konqueror@gmx.de>
* java/awt/DisplayMode.java (equals): Fixed argument type and implementation. From-SVN: r61184
This commit is contained in:
parent
63af3bd1a2
commit
b1771c6ac2
2 changed files with 13 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
/* DisplayMode.java -- a description of display mode configurations
|
||||
Copyright (C) 2002 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002, 2003 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
|
@ -140,16 +140,16 @@ public final class DisplayMode
|
|||
* 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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue