Skip to content

Commit 98efb64

Browse files
fix: Use parameter to assign vector field.
1 parent c6c515b commit 98efb64

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/org/springframework/data/neo4j/integration/shared/conversion/ThingWithAllAdditionalTypes.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import java.util.Date;
2727
import java.util.List;
2828
import java.util.Locale;
29+
import java.util.Objects;
2930
import java.util.Set;
3031
import java.util.TimeZone;
3132
import java.util.UUID;
@@ -595,7 +596,7 @@ public String toString() {
595596
}
596597

597598
public ThingWithAllAdditionalTypes withId(Long id) {
598-
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);
599+
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);
599600
}
600601

601602
enum SomeEnum {
@@ -887,7 +888,7 @@ public ThingWithAllAdditionalTypesBuilder aZeroDuration(Duration aZeroDuration)
887888
return this;
888889
}
889890

890-
public ThingWithAllAdditionalTypesBuilder aVector(Vector vector) {
891+
public ThingWithAllAdditionalTypesBuilder aVector(Vector aVector) {
891892
this.aVector = aVector;
892893
return this;
893894
}

0 commit comments

Comments
 (0)