diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2019-11-04 10:28:17 +0100 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2019-11-04 10:28:17 +0100 |
commit | 1c7999b7258e5c9a46f55c046715c20b624ea814 (patch) | |
tree | c76e92ca2d5cc4d872bb1a723d10a0f4b24c75d8 /controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationVersion.java | |
parent | f3808f84558c8306c3e5541f8c1c4c860fd01c2a (diff) |
ApplicationVersion equality on id parts only
Diffstat (limited to 'controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationVersion.java')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationVersion.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationVersion.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationVersion.java index b1dad7d814e..fb9745d90cb 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationVersion.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationVersion.java @@ -115,15 +115,12 @@ public class ApplicationVersion implements Comparable<ApplicationVersion> { if (!(o instanceof ApplicationVersion)) return false; ApplicationVersion that = (ApplicationVersion) o; return Objects.equals(source, that.source) && - Objects.equals(authorEmail, that.authorEmail) && - Objects.equals(buildNumber, that.buildNumber) && - Objects.equals(compileVersion, that.compileVersion) && - Objects.equals(buildTime, that.buildTime); + Objects.equals(buildNumber, that.buildNumber); } @Override public int hashCode() { - return Objects.hash(source, authorEmail, buildNumber, compileVersion, buildTime); + return Objects.hash(source, buildNumber); } @Override |