@Override public boolean equals(Object other) { if (this == other) { return true; } if (!super.equals(other)) { return false; } DependencyDescriptor otherDesc = (DependencyDescriptor) other; return (this.required == otherDesc.required && this.eager == otherDesc.eager && this.nestingLevel == otherDesc.nestingLevel && this.containingClass == otherDesc.containingClass); }
@Override public boolean equals(Object other) { if (this == other) { return true; } if (!super.equals(other)) { return false; } DependencyDescriptor otherDesc = (DependencyDescriptor) other; return (this.required == otherDesc.required && this.eager == otherDesc.eager && this.nestingLevel == otherDesc.nestingLevel && this.containingClass == otherDesc.containingClass); }