From 5accc40c77e51cb15eb87a480e679a5012d1423e Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Tue, 12 Sep 2023 13:15:59 +0100 Subject: [PATCH] Suppress warning --- .../java/org/springframework/samples/petclinic/vet/VetTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/org/springframework/samples/petclinic/vet/VetTests.java b/src/test/java/org/springframework/samples/petclinic/vet/VetTests.java index d8df78b85ee..b29c6d1009e 100644 --- a/src/test/java/org/springframework/samples/petclinic/vet/VetTests.java +++ b/src/test/java/org/springframework/samples/petclinic/vet/VetTests.java @@ -31,6 +31,7 @@ void testSerialization() { vet.setFirstName("Zaphod"); vet.setLastName("Beeblebrox"); vet.setId(123); + @SuppressWarnings("deprecation") Vet other = (Vet) SerializationUtils.deserialize(SerializationUtils.serialize(vet)); assertThat(other.getFirstName()).isEqualTo(vet.getFirstName()); assertThat(other.getLastName()).isEqualTo(vet.getLastName());