From 23bda9a5a74780dd2c56829caa23766e5ffbbb31 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Fri, 27 Jul 2018 08:49:45 -0400 Subject: [PATCH] Fix compiler warnings --- .../test/web/reactive/server/JsonPathAssertions.java | 5 +++++ .../test/web/reactive/server/XpathAssertions.java | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/spring-test/src/main/java/org/springframework/test/web/reactive/server/JsonPathAssertions.java b/spring-test/src/main/java/org/springframework/test/web/reactive/server/JsonPathAssertions.java index 96675e85b2..19baa770be 100644 --- a/spring-test/src/main/java/org/springframework/test/web/reactive/server/JsonPathAssertions.java +++ b/spring-test/src/main/java/org/springframework/test/web/reactive/server/JsonPathAssertions.java @@ -183,4 +183,9 @@ public class JsonPathAssertions { "to avoid being used in error instead of JsonPathAssertions#isEqualTo(String)."); } + @Override + public int hashCode() { + return super.hashCode(); + } + } diff --git a/spring-test/src/main/java/org/springframework/test/web/reactive/server/XpathAssertions.java b/spring-test/src/main/java/org/springframework/test/web/reactive/server/XpathAssertions.java index 8082b32c8c..7675a674e9 100644 --- a/spring-test/src/main/java/org/springframework/test/web/reactive/server/XpathAssertions.java +++ b/spring-test/src/main/java/org/springframework/test/web/reactive/server/XpathAssertions.java @@ -195,6 +195,11 @@ public class XpathAssertions { "to avoid being used in error instead of XPathAssertions#isEqualTo(String)."); } + @Override + public int hashCode() { + return super.hashCode(); + } + /** * Lets us be able to use lambda expressions that could throw checked exceptions, since