From 8aa52c129c6095472ebac6dbedb7f5b85c7134e0 Mon Sep 17 00:00:00 2001 From: Christoph Strobl Date: Thu, 10 Mar 2022 09:21:43 +0100 Subject: [PATCH] Modify visibility of methods in TypedJsonSchemaObject. Change visibility to public as it should have been in first place. Closes: #3989 --- .../data/mongodb/core/schema/TypedJsonSchemaObject.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/schema/TypedJsonSchemaObject.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/schema/TypedJsonSchemaObject.java index fe9a0e7f8..0ae7e6cac 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/schema/TypedJsonSchemaObject.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/schema/TypedJsonSchemaObject.java @@ -587,7 +587,7 @@ public class TypedJsonSchemaObject extends UntypedJsonSchemaObject { * @param value must not be {@literal null}. * @return must not be {@literal null}. */ - NumericJsonSchemaObject multipleOf(Number value) { + public NumericJsonSchemaObject multipleOf(Number value) { Assert.notNull(value, "Value must not be null!"); NumericJsonSchemaObject newInstance = newInstance(description, generateDescription, restrictions); @@ -665,7 +665,7 @@ public class TypedJsonSchemaObject extends UntypedJsonSchemaObject { * @return new instance of {@link NumericJsonSchemaObject}. */ @SuppressWarnings("unchecked") - NumericJsonSchemaObject lte(Number max) { + public NumericJsonSchemaObject lte(Number max) { Assert.notNull(max, "Max must not be null!");