summaryrefslogtreecommitdiffstats
path: root/controller-server
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2020-04-03 13:15:39 +0200
committerBjørn Christian Seime <bjorncs@verizonmedia.com>2020-04-03 13:15:39 +0200
commit6dcab683201d67e6741c1d4e63ee9f57a9576655 (patch)
treee6234e7b6a00379c00aac964191928566587d2ba /controller-server
parent49413ece8a980c07bf4906233cd221c41d2dc91d (diff)
Add missing equals()/hashCode() to WarningWithoutTarget
Diffstat (limited to 'controller-server')
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/systemflags/SystemFlagsDeployResult.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/systemflags/SystemFlagsDeployResult.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/systemflags/SystemFlagsDeployResult.java
index 010e98c2640..57d47757c5e 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/systemflags/SystemFlagsDeployResult.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/systemflags/SystemFlagsDeployResult.java
@@ -396,5 +396,19 @@ class SystemFlagsDeployResult {
}
Warning toWarning(Set<FlagsTarget> targets) { return new Warning(message, targets, flagId); }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ WarningWithoutTarget that = (WarningWithoutTarget) o;
+ return Objects.equals(message, that.message) &&
+ Objects.equals(flagId, that.flagId);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(message, flagId);
+ }
}
}