@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; final AllocationSite other = (AllocationSite) obj; if (method == null) { if (other.method != null) return false; } else if (!method.equals(other.method)) return false; if (site == null) { if (other.site != null) return false; } else if (!site.equals(other.site)) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; final AllocationSite other = (AllocationSite) obj; if (method == null) { if (other.method != null) return false; } else if (!method.equals(other.method)) return false; if (site == null) { if (other.site != null) return false; } else if (!site.equals(other.site)) return false; return true; }
@Override public boolean equals(Object obj) { // instanceof is OK because this class is final if (obj instanceof MultiNewArrayInNode) { MultiNewArrayInNode other = (MultiNewArrayInNode) obj; return (dim == other.dim && getNode().equals(other.getNode()) && getSite().equals(other.getSite())); } else { return false; } }
@Override public boolean equals(Object obj) { // instanceof is OK because this class is final if (obj instanceof NormalAllocationInNode) { AllocationSiteInNode other = (AllocationSiteInNode) obj; return getNode().equals(other.getNode()) && getSite().equals(other.getSite()); } else { return false; } }
@Override public boolean equals(Object obj) { // instanceof is OK because this class is final if (obj instanceof NormalAllocationInNode) { AllocationSiteInNode other = (AllocationSiteInNode) obj; return getNode().equals(other.getNode()) && getSite().equals(other.getSite()); } else { return false; } }
@Override public boolean equals(Object obj) { // instanceof is OK because this class is final if (obj instanceof ZeroLengthArrayInNode) { AllocationSiteInNode other = (AllocationSiteInNode) obj; return getNode().equals(other.getNode()) && getSite().equals(other.getSite()); } else { return false; } }
@Override public boolean equals(Object obj) { // instanceof is OK because this class is final if (obj instanceof MultiNewArrayInNode) { MultiNewArrayInNode other = (MultiNewArrayInNode) obj; return (dim == other.dim && getNode().equals(other.getNode()) && getSite().equals(other.getSite())); } else { return false; } }
@Override public boolean equals(Object obj) { // instanceof is OK because this class is final if (obj instanceof ZeroLengthArrayInNode) { AllocationSiteInNode other = (AllocationSiteInNode) obj; return getNode().equals(other.getNode()) && getSite().equals(other.getSite()); } else { return false; } }