if (obj == null || ! (obj instanceof CompoundName))
if (! (obj instanceof CompoundName))
  public int compareTo (Object obj)  {    if (obj == null || ! (obj instanceof CompoundName))      throw new ClassCastException ("CompoundName.compareTo() expected CompoundName");    CompoundName cn = (CompoundName) obj;    int last = Math.min (cn.elts.size (), elts.size ());    for (int i = 0; i < last; ++i)      {	String f = canonicalize ((String) elts.get (i));	int comp = f.compareTo (canonicalize ((String) cn.elts.get (i)));	if (comp != 0)	  return comp;      }    return elts.size () - cn.elts.size ();  }