diff options
| author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-11 12:22:20 +0000 |
|---|---|---|
| committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-11 12:22:20 +0000 |
| commit | f67883c360bbe52e21a6fe3582edd07388246bcf (patch) | |
| tree | 4fa45868beabc11ccfac0015241a40e4f53ec8b1 /libjava/javax/naming/CompoundName.java | |
| parent | 70bcc14a11ac33a1024a935ad7765fa0076b7cb8 (diff) | |
| download | ppe42-gcc-f67883c360bbe52e21a6fe3582edd07388246bcf.tar.gz ppe42-gcc-f67883c360bbe52e21a6fe3582edd07388246bcf.zip | |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73448 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/javax/naming/CompoundName.java')
| -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 ()); |

