diff options
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 ()); |