Skip to content

Commit 6c59559

Browse files
committed
Add missing parameter to String format.
1 parent 91dd085 commit 6c59559

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/java/org/springframework/data/neo4j/repository/query/DtoInstantiatingConverter.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ Object getPropertyValueFor(PersistentProperty<?> targetProperty, PersistentEntit
133133
} else if (targetProperty.isMap()) {
134134
Neo4jQuerySupport.REPOSITORY_QUERY_LOG.warn(() -> String.format(""
135135
+ "%s is an additional property to be projected. "
136-
+ "However, map properties cannot be projected and the property will always be null."));
136+
+ "However, map properties cannot be projected and the property will always be null.",
137+
targetPropertyName));
137138
} else {
138139
// We don't support associations on the top level of DTO projects which is somewhat inline with the restrictions
139140
// regarding DTO projections as described in https://docs.spring.io/spring-data/jpa/docs/2.4.0-RC1/reference/html/#projections.dtos
@@ -143,8 +144,8 @@ Object getPropertyValueFor(PersistentProperty<?> targetProperty, PersistentEntit
143144
Value property = sourceRecord.get(targetPropertyName);
144145
if (targetProperty.isCollectionLike() && !typeSystem.LIST().isTypeOf(property)) {
145146
Neo4jQuerySupport.REPOSITORY_QUERY_LOG.warn(() -> String.format(""
146-
+ "%s is a list property but the selected value is not a list and the property will always be null."
147-
));
147+
+ "%s is a list property but the selected value is not a list and the property will always be null.",
148+
targetPropertyName));
148149
} else {
149150
Class<?> actualType = targetProperty.getActualType();
150151

0 commit comments

Comments
 (0)