if (!(obj instanceof VM_CallSiteTriple)) return false; if (obj == null) return false; VM_CallSiteTriple triple = (VM_CallSiteTriple)obj; boolean returnValue = false; try { returnValue = (caller.toString().compareTo(triple.caller.toString())==0); if (returnValue == true) { returnValue = (callee.toString().compareTo(triple.callee.toString())==0); if (returnValue == true) { if (bcIndex != triple.bcIndex && bcIndex != -1 && triple.bcIndex != -1) { returnValue = false; } } } } catch (NullPointerException e) { VM.sysWrite("***VM_CallSiteTriple.equals("+obj+ ") compareTo of names failed!\n"); returnValue = false;
if (obj instanceof VM_CallSiteTriple) { VM_CallSiteTriple triple = (VM_CallSiteTriple)obj; return caller == triple.caller && callee == triple.callee && bcIndex == triple.bcIndex;
  public boolean equals(Object obj) {    if (!(obj instanceof VM_CallSiteTriple)) return false;    if (obj == null) return false;    VM_CallSiteTriple triple = (VM_CallSiteTriple)obj;    boolean returnValue = false;    try {      returnValue = (caller.toString().compareTo(triple.caller.toString())==0);      if (returnValue == true) {	returnValue = (callee.toString().compareTo(triple.callee.toString())==0);	if (returnValue == true) {	  if (bcIndex != triple.bcIndex && bcIndex != -1 && triple.bcIndex != -1) {	    returnValue = false;	  }	}      }    } catch (NullPointerException e) {      VM.sysWrite("***VM_CallSiteTriple.equals("+obj+		  ") compareTo of names failed!\n");      returnValue = false;    }    return returnValue;  }