@Override public boolean equals(Object obj){
  if (obj == this)   return true;
  if (!(obj instanceof CodeSource))   return false;
  CodeSource cs=(CodeSource)obj;
  if (location == null) {
    if (cs.location != null)     return false;
  }
 else {
    if (!location.equals(cs.location))     return false;
  }
  return matchCerts(cs,true);
}

@ Override public boolean equals ( Object obj ) { if ( obj == this ) return true ; if ( ! ( obj instanceof CodeSource ) ) return false ; CodeSource cs = ( CodeSource ) obj ; if ( location == null ) { if ( cs . location != null ) return false ; } else { if ( ! location . equals ( cs . location ) ) return false ; } return matchCerts ( cs , true ) ; }
tests for equality between the specified object and this object . two codesource objects are considered equal if their locations are of identical value and if their signer certificate chains are of identical value . it is not required that the certificate chains be in the same order .
