Skip to content

Commit b14db2a

Browse files
GH-2118 - Polishing.
1 parent 988e52b commit b14db2a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/springframework/data/neo4j/core/mapping/MappingSupport.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import org.neo4j.driver.Value;
2828
import org.neo4j.driver.types.Type;
2929
import org.springframework.data.mapping.PersistentPropertyAccessor;
30+
import org.springframework.lang.Nullable;
3031

3132
/**
3233
* @author Michael J. Simons
@@ -45,7 +46,7 @@ public final class MappingSupport {
4546
* @return A unified collection (Either a collection of Map.Entry for dynamic and relationships with properties or a
4647
* list of related values)
4748
*/
48-
public static Collection<?> unifyRelationshipValue(Neo4jPersistentProperty property, Object rawValue) {
49+
public static Collection<?> unifyRelationshipValue(Neo4jPersistentProperty property, @Nullable Object rawValue) {
4950

5051
if (rawValue == null) {
5152
return Collections.emptyList();
@@ -111,7 +112,7 @@ final static class RelationshipPropertiesWithEntityHolder {
111112
this.relatedEntity = relatedEntity;
112113
}
113114

114-
public PersistentPropertyAccessor<?> getRelationshipPropertiesPropertyAccessor() {
115+
PersistentPropertyAccessor<?> getRelationshipPropertiesPropertyAccessor() {
115116
return relationshipPropertiesPropertyAccessor;
116117
}
117118

0 commit comments

Comments
 (0)