File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,8 +95,8 @@ public Query addCriteria(CriteriaDefinition criteriaDefinition) {
95
95
this .criteria .put (key , criteriaDefinition );
96
96
} else {
97
97
throw new InvalidMongoDbApiUsageException (
98
- "Due to limitations of the com.mongodb.BasicDBObject, " + " you can't add a second '" + key + " ' criteria. "
99
- + "Query already contains '" + serializeToJsonSafely (existing .getCriteriaObject ()) + "'." );
98
+ String . format ( "Due to limitations of the com.mongodb.BasicDBObject, you can't add a second '%s ' criteria. "
99
+ + "Query already contains '%s'" , key , serializeToJsonSafely (existing .getCriteriaObject ())) );
100
100
}
101
101
102
102
return this ;
You can’t perform that action at this time.
0 commit comments