diff options
author | Michael Koch <konqueror@gmx.de> | 2002-09-16 09:46:37 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2002-09-16 09:46:37 +0000 |
commit | cf0f53eb6e76976cd7a2211a331cac5732d4a9bf (patch) | |
tree | 153e40de6d2df8dbf1b4d09c84c431b1df50322f /libjava/javax/naming | |
parent | b423e6fe615f5d0a65bb02ad8dd15457c8871a5c (diff) | |
download | gcc-cf0f53eb6e76976cd7a2211a331cac5732d4a9bf.tar.gz |
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
Diffstat (limited to 'libjava/javax/naming')
-rw-r--r-- | libjava/javax/naming/BinaryRefAddr.java | 12 | ||||
-rw-r--r-- | libjava/javax/naming/NamingException.java | 2 | ||||
-rw-r--r-- | libjava/javax/naming/RefAddr.java | 24 |
3 files changed, 19 insertions, 19 deletions
diff --git a/libjava/javax/naming/BinaryRefAddr.java b/libjava/javax/naming/BinaryRefAddr.java index 8d8d44d9bd4..29ca33d6ca2 100644 --- a/libjava/javax/naming/BinaryRefAddr.java +++ b/libjava/javax/naming/BinaryRefAddr.java @@ -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; } diff --git a/libjava/javax/naming/NamingException.java b/libjava/javax/naming/NamingException.java index a377041ae83..6c0f0172dc1 100644 --- a/libjava/javax/naming/NamingException.java +++ b/libjava/javax/naming/NamingException.java @@ -47,7 +47,7 @@ import java.io.PrintWriter; * <code>NamingException</code>), the part of the <code>Name</code> that * could be resolved (including the <code>Object</code> it resolved to) * and the part of the <code>Name</code> that could not be resolved when - * the exception occurred. + * the exception occured. * * @since 1.3 * @author Anthony Green (green@redhat.com) diff --git a/libjava/javax/naming/RefAddr.java b/libjava/javax/naming/RefAddr.java index 2bccdfab8c0..9ed504f760d 100644 --- a/libjava/javax/naming/RefAddr.java +++ b/libjava/javax/naming/RefAddr.java @@ -71,9 +71,9 @@ public abstract class RefAddr implements Serializable */ protected RefAddr(String addrType) { - if (addrType == null) - throw new NullPointerException("addrType cannot be null"); - + if (addrType == null) + throw new NullPointerException("addrType cannot be null"); + this.addrType = addrType; } @@ -98,20 +98,20 @@ public abstract class RefAddr implements Serializable * is the same as this addrType and the content is equals to the * content of this object. */ - public boolean equals (Object o) + public boolean equal(Object o) { if (o instanceof RefAddr) { RefAddr refAddr = (RefAddr) o; if (this.getType().equals(refAddr.getType())) - { - Object c1 = this.getContent(); - Object c2 = refAddr.getContent(); - if (c1 == null) - return c2 == null; - else - return c1.equals(c2); - } + { + Object c1 = this.getContent(); + Object c2 = refAddr.getContent(); + if (c1 == null) + return c2 == null; + else + return c1.equals(c2); + } } return false; } |