AssertionError.java: Merge with classpath, fixes HTML.
2002-09-16 Michael Koch <konqueror@gmx.de> * java/lang/AssertionError.java: Merge with classpath, fixes HTML. * java/rmi/server/LogStream.java: Merge with classpath, fixes some constants. * java/net/server/RemoteServer.java: Merge with classpath, adds serialVersionUID. * javax/naming/BinaryRefAddr.java: Merge with classpath, s/equal/equals/. * javax/naming/NamingException.java: Merge with classpath, fixed typo. * javax/naming/RefAddr.java: Merge with classpath, s/equal/equals/. * java/awt/Toolkit.java: s/gnu.java.awt.peer.gtk.GtkToolkit/gnu.awt.gtk.GtkToolkit/ and typo fixed. From-SVN: r57187
This commit is contained in:
parent
b423e6fe61
commit
cf0f53eb6e
8 changed files with 46 additions and 26 deletions
|
@ -97,17 +97,17 @@ public class BinaryRefAddr extends RefAddr
|
|||
* the addrType is the same as this addrType and the bytes of the
|
||||
* content are the same.
|
||||
*/
|
||||
public boolean equals (Object o)
|
||||
public boolean equal(Object o)
|
||||
{
|
||||
if (o instanceof BinaryRefAddr)
|
||||
{
|
||||
BinaryRefAddr refAddr = (BinaryRefAddr) o;
|
||||
if (this.getType().equals(refAddr.getType()))
|
||||
{
|
||||
byte[] c1 = (byte[]) this.getContent();
|
||||
byte[] c2 = (byte[]) refAddr.getContent();
|
||||
return Arrays.equals(c1, c2);
|
||||
}
|
||||
{
|
||||
byte[] c1 = (byte[]) this.getContent();
|
||||
byte[] c2 = (byte[]) refAddr.getContent();
|
||||
return Arrays.equals(c1, c2);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue