diff options
author | Michael Koch <konqueror@gmx.de> | 2003-11-11 12:22:20 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2003-11-11 12:22:20 +0000 |
commit | 5237cd77c28ff1bcfddc6ef7029038bd747bea4c (patch) | |
tree | 4fa45868beabc11ccfac0015241a40e4f53ec8b1 /libjava/javax/naming | |
parent | c824ce21ca58c7fc312dc95e8671d7f584b967a7 (diff) | |
download | gcc-5237cd77c28ff1bcfddc6ef7029038bd747bea4c.tar.gz |
Font.java, [...]: Removed some redundant obj == null checks.
2003-11-11 Michael Koch <konqueror@gmx.de>
* java/awt/Font.java,
java/awt/datatransfer/DataFlavor.java,
java/math/BigInteger.java,
java/net/Inet4Address.java,
java/net/Inet6Address.java,
java/rmi/MarshalledObject.java,
java/rmi/server/RMIClassLoader.java,
java/security/cert/CertStore.java,
java/sql/Timestamp.java,
java/text/SimpleDateFormat.java,
javax/naming/CompoundName.java:
Removed some redundant obj == null checks.
From-SVN: r73448
Diffstat (limited to 'libjava/javax/naming')
-rw-r--r-- | libjava/javax/naming/CompoundName.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/javax/naming/CompoundName.java b/libjava/javax/naming/CompoundName.java index 20396398d10..4df89e9af95 100644 --- a/libjava/javax/naming/CompoundName.java +++ b/libjava/javax/naming/CompoundName.java @@ -240,7 +240,7 @@ public class CompoundName implements Name, Cloneable, Serializable public int compareTo (Object obj) { - if (obj == null || ! (obj instanceof CompoundName)) + if (! (obj instanceof CompoundName)) throw new ClassCastException ("CompoundName.compareTo() expected CompoundName"); CompoundName cn = (CompoundName) obj; int last = Math.min (cn.elts.size (), elts.size ()); |