diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/schema/IdentifiableJsonSchemaProperty.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/schema/IdentifiableJsonSchemaProperty.java index ffb5d626c..48b232f5f 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/schema/IdentifiableJsonSchemaProperty.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/schema/IdentifiableJsonSchemaProperty.java @@ -1172,7 +1172,7 @@ public class IdentifiableJsonSchemaProperty implemen enc.append("bsonType", type.toBsonType().value()); // TODO: no samples with type -> is it bson type all the way? } - if(StringUtils.hasText(algorithm)) { + if (StringUtils.hasText(algorithm)) { enc.append("algorithm", algorithm); }