public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || !(obj instanceof SimpleArtifactDescriptor)) return false; SimpleArtifactDescriptor other = (SimpleArtifactDescriptor) obj; //Properties affecting SimpleArtifactRepository#getLocation String locationProperty = getRepositoryProperty(ARTIFACT_REFERENCE); String otherProperty = other.getRepositoryProperty(ARTIFACT_REFERENCE); // want not null and the same, or both null if (locationProperty != null ? !locationProperty.equals(otherProperty) : otherProperty != null) return false; return super.equals(obj); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || !(obj instanceof SimpleArtifactDescriptor)) return false; SimpleArtifactDescriptor other = (SimpleArtifactDescriptor) obj; //Properties affecting SimpleArtifactRepository#getLocation String locationProperty = getRepositoryProperty(ARTIFACT_REFERENCE); String otherProperty = other.getRepositoryProperty(ARTIFACT_REFERENCE); // want not null and the same, or both null if (locationProperty != null ? !locationProperty.equals(otherProperty) : otherProperty != null) return false; return super.equals(obj); }
public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || !(obj instanceof SimpleArtifactDescriptor)) return false; SimpleArtifactDescriptor other = (SimpleArtifactDescriptor) obj; //Properties affecting SimpleArtifactRepository#getLocation String locationProperty = getRepositoryProperty(ARTIFACT_REFERENCE); String otherProperty = other.getRepositoryProperty(ARTIFACT_REFERENCE); // want not null and the same, or both null if (locationProperty != null ? !locationProperty.equals(otherProperty) : otherProperty != null) return false; return super.equals(obj); }
public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || !(obj instanceof SimpleArtifactDescriptor)) return false; SimpleArtifactDescriptor other = (SimpleArtifactDescriptor) obj; //Properties affecting SimpleArtifactRepository#getLocation String locationProperty = getRepositoryProperty(ARTIFACT_REFERENCE); String otherProperty = other.getRepositoryProperty(ARTIFACT_REFERENCE); // want not null and the same, or both null if (locationProperty != null ? !locationProperty.equals(otherProperty) : otherProperty != null) return false; return super.equals(obj); }