From 98efb64a65f32ef5ed1e1c36c95ff766139180d9 Mon Sep 17 00:00:00 2001 From: Michael Simons Date: Mon, 2 Jun 2025 14:05:06 +0200 Subject: [PATCH] fix: Use parameter to assign vector field. --- .../shared/conversion/ThingWithAllAdditionalTypes.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/springframework/data/neo4j/integration/shared/conversion/ThingWithAllAdditionalTypes.java b/src/test/java/org/springframework/data/neo4j/integration/shared/conversion/ThingWithAllAdditionalTypes.java index 0949ad21d..1a5f4de08 100644 --- a/src/test/java/org/springframework/data/neo4j/integration/shared/conversion/ThingWithAllAdditionalTypes.java +++ b/src/test/java/org/springframework/data/neo4j/integration/shared/conversion/ThingWithAllAdditionalTypes.java @@ -26,6 +26,7 @@ import java.time.ZoneId; import java.util.Date; import java.util.List; import java.util.Locale; +import java.util.Objects; import java.util.Set; import java.util.TimeZone; import java.util.UUID; @@ -595,7 +596,7 @@ public class ThingWithAllAdditionalTypes { } public ThingWithAllAdditionalTypes withId(Long id) { - return this.id == id ? this : new ThingWithAllAdditionalTypes(id, this.booleanArray, this.aByte, this.aChar, this.charArray, this.aDate, this.aBigDecimal, this.aBigInteger, this.doubleArray, this.aFloat, this.floatArray, this.anInt, this.intArray, this.aLocale, this.longArray, this.aShort, this.shortArray, this.aPeriod, this.aDuration, this.stringArray, this.listOfStrings, this.setOfStrings, this.anInstant, this.aUUID, this.aURL, this.aURI, this.anEnum, this.anArrayOfEnums, this.listOfDoubles, this.aCollectionOfEnums, this.aTimeZone, this.aZoneId, this.aZeroPeriod, this.aZeroDuration, this.aVector); + return Objects.equals(this.id, id) ? this : new ThingWithAllAdditionalTypes(id, this.booleanArray, this.aByte, this.aChar, this.charArray, this.aDate, this.aBigDecimal, this.aBigInteger, this.doubleArray, this.aFloat, this.floatArray, this.anInt, this.intArray, this.aLocale, this.longArray, this.aShort, this.shortArray, this.aPeriod, this.aDuration, this.stringArray, this.listOfStrings, this.setOfStrings, this.anInstant, this.aUUID, this.aURL, this.aURI, this.anEnum, this.anArrayOfEnums, this.listOfDoubles, this.aCollectionOfEnums, this.aTimeZone, this.aZoneId, this.aZeroPeriod, this.aZeroDuration, this.aVector); } enum SomeEnum { @@ -887,7 +888,7 @@ public class ThingWithAllAdditionalTypes { return this; } - public ThingWithAllAdditionalTypesBuilder aVector(Vector vector) { + public ThingWithAllAdditionalTypesBuilder aVector(Vector aVector) { this.aVector = aVector; return this; }