From b14db2a377d6617f61fc6e11d2fa27550643a115 Mon Sep 17 00:00:00 2001 From: Michael Simons Date: Mon, 25 Jan 2021 12:12:34 +0100 Subject: [PATCH] GH-2118 - Polishing. --- .../data/neo4j/core/mapping/MappingSupport.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/springframework/data/neo4j/core/mapping/MappingSupport.java b/src/main/java/org/springframework/data/neo4j/core/mapping/MappingSupport.java index d1c9da9e63..ecd74d83c8 100644 --- a/src/main/java/org/springframework/data/neo4j/core/mapping/MappingSupport.java +++ b/src/main/java/org/springframework/data/neo4j/core/mapping/MappingSupport.java @@ -27,6 +27,7 @@ import org.neo4j.driver.Value; import org.neo4j.driver.types.Type; import org.springframework.data.mapping.PersistentPropertyAccessor; +import org.springframework.lang.Nullable; /** * @author Michael J. Simons @@ -45,7 +46,7 @@ public final class MappingSupport { * @return A unified collection (Either a collection of Map.Entry for dynamic and relationships with properties or a * list of related values) */ - public static Collection unifyRelationshipValue(Neo4jPersistentProperty property, Object rawValue) { + public static Collection unifyRelationshipValue(Neo4jPersistentProperty property, @Nullable Object rawValue) { if (rawValue == null) { return Collections.emptyList(); @@ -111,7 +112,7 @@ final static class RelationshipPropertiesWithEntityHolder { this.relatedEntity = relatedEntity; } - public PersistentPropertyAccessor getRelationshipPropertiesPropertyAccessor() { + PersistentPropertyAccessor getRelationshipPropertiesPropertyAccessor() { return relationshipPropertiesPropertyAccessor; }