Skip to content

Commit

Permalink
GH-2118 - Polishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-simons committed Jan 25, 2021
1 parent 988e52b commit b14db2a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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();
Expand Down Expand Up @@ -111,7 +112,7 @@ final static class RelationshipPropertiesWithEntityHolder {
this.relatedEntity = relatedEntity;
}

public PersistentPropertyAccessor<?> getRelationshipPropertiesPropertyAccessor() {
PersistentPropertyAccessor<?> getRelationshipPropertiesPropertyAccessor() {
return relationshipPropertiesPropertyAccessor;
}

Expand Down

0 comments on commit b14db2a

Please sign in to comment.