@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((artifact == null) ? 0 : artifact.hashCode()); result = prime * result + (updateUsed ? 1231 : 1237); return result; }
/** * Keep track if the user used the update method, so we do not override the value * when handling automatic update on SNAPSHOT versions. */ @Override public MavenArtifactProvisionOption update(final Boolean shouldUpdate) { updateUsed = true; return super.update(shouldUpdate); }
@Override public boolean shouldUpdate() { if (!updateUsed) { super.update(isSnapshot() != null && isSnapshot()); } return super.shouldUpdate(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; @SuppressWarnings("unchecked") AbstractUrlProvisionOption<T> other = (AbstractUrlProvisionOption<T>) obj; if (urlReference == null) { if (other.urlReference != null) return false; } else if (!urlReference.equals(other.urlReference)) return false; return true; } // CHECKSTYLE:ON
@Override public boolean shouldUpdate() { if (!updateUsed) { super.update(isSnapshot() != null && isSnapshot()); } return super.shouldUpdate(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; MavenArtifactProvisionOption other = (MavenArtifactProvisionOption) obj; if (artifact == null) { if (other.artifact != null) return false; } else if (!artifact.equals(other.artifact)) return false; if (updateUsed != other.updateUsed) return false; return true; } // CHECKSTYLE:ON
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((urlReference == null) ? 0 : urlReference.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; @SuppressWarnings("unchecked") AbstractUrlProvisionOption<T> other = (AbstractUrlProvisionOption<T>) obj; if (urlReference == null) { if (other.urlReference != null) return false; } else if (!urlReference.equals(other.urlReference)) return false; return true; } // CHECKSTYLE:ON
/** * Keep track if the user used the update method, so we do not override the value * when handling automatic update on SNAPSHOT versions. */ @Override public MavenArtifactProvisionOption update(final Boolean shouldUpdate) { updateUsed = true; return super.update(shouldUpdate); }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((artifact == null) ? 0 : artifact.hashCode()); result = prime * result + (updateUsed ? 1231 : 1237); return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; MavenArtifactProvisionOption other = (MavenArtifactProvisionOption) obj; if (artifact == null) { if (other.artifact != null) return false; } else if (!artifact.equals(other.artifact)) return false; if (updateUsed != other.updateUsed) return false; return true; } // CHECKSTYLE:ON
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((urlReference == null) ? 0 : urlReference.hashCode()); return result; }