diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/config/MongoConfigurationSupport.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/config/MongoConfigurationSupport.java index eefa2c916c..5e0e046df4 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/config/MongoConfigurationSupport.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/config/MongoConfigurationSupport.java @@ -207,7 +207,7 @@ protected FieldNamingStrategy fieldNamingStrategy() { * {@link org.springframework.data.mongodb.core.index.IndexDefinition} from the entity or not. * * @return {@literal false} by default.
- * INFO: As of 3.x the default is set to {@literal false}; In 2.x it was {@literal true}. + * INFO: As of 3.x the default is set to {@literal false}; In 2.x it was {@literal true}. * @since 2.2 */ protected boolean autoIndexCreation() { diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/CollectionOptions.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/CollectionOptions.java index 7adbf62607..e600b99f77 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/CollectionOptions.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/CollectionOptions.java @@ -99,7 +99,7 @@ public static CollectionOptions timeSeries(String timeField) { /** * Create new {@link CollectionOptions} with already given settings and capped set to {@literal true}.
- * NOTE Using capped collections requires defining {@link #size(long)}. + * NOTE: Using capped collections requires defining {@link #size(long)}. * * @return new {@link CollectionOptions}. * @since 2.0 diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ExecutableRemoveOperation.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ExecutableRemoveOperation.java index a1ae5e2cf7..d80e4a80fa 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ExecutableRemoveOperation.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ExecutableRemoveOperation.java @@ -76,7 +76,7 @@ interface TerminatingRemove { /** * Remove and return all matching documents.
- * NOTE The entire list of documents will be fetched before sending the actual delete commands. + * NOTE: The entire list of documents will be fetched before sending the actual delete commands. * Also, {@link org.springframework.context.ApplicationEvent}s will be published for each and every delete * operation. * diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveRemoveOperation.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveRemoveOperation.java index 4a985b73f4..81519fee68 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveRemoveOperation.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveRemoveOperation.java @@ -69,7 +69,7 @@ interface TerminatingRemove { /** * Remove and return all matching documents.
- * NOTE The entire list of documents will be fetched before sending the actual delete commands. + * NOTE: The entire list of documents will be fetched before sending the actual delete commands. * Also, {@link org.springframework.context.ApplicationEvent}s will be published for each and every delete * operation. * diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/DateOperators.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/DateOperators.java index b39c9725f4..85724bbe10 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/DateOperators.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/DateOperators.java @@ -159,7 +159,7 @@ public static DateFromString dateFromString(String value) { * +/-[hh], e.g. "+03" * * - * NOTE: Support for timezones in aggregations Requires MongoDB 3.6 or later. + * NOTE: Support for timezones in aggregations Requires MongoDB 3.6 or later. * * @author Christoph Strobl * @author Mark Paluch diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/LazyLoadingProxyFactory.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/LazyLoadingProxyFactory.java index 247af85896..799d588358 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/LazyLoadingProxyFactory.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/LazyLoadingProxyFactory.java @@ -47,7 +47,7 @@ /** * {@link ProxyFactory} to create a proxy for {@link MongoPersistentProperty#getType()} to resolve a reference lazily. - * NOTE This class is intended for internal usage only. + * NOTE: This class is intended for internal usage only. * * @author Christoph Strobl * @author Mark Paluch diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/TextIndexDefinition.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/TextIndexDefinition.java index 48f979a022..c154233890 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/TextIndexDefinition.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/TextIndexDefinition.java @@ -244,7 +244,7 @@ public TextIndexDefinitionBuilder named(String name) { /** * Define the index to span all fields using wildcard.
- * NOTE {@link TextIndexDefinition} cannot contain any other fields when defined with wildcard. + * NOTE: {@link TextIndexDefinition} cannot contain any other fields when defined with wildcard. * * @return */ diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/WildcardIndex.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/WildcardIndex.java index ecca5ddaa1..26d5caf697 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/WildcardIndex.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/WildcardIndex.java @@ -61,7 +61,7 @@ public WildcardIndex() {} /** * Create a new instance of {@link WildcardIndex} for the given {@literal path}. If no {@literal path} is provided the * index will be considered a root one using {@code $**}.
- * NOTE {@link #wildcardProjectionInclude(String...)}, {@link #wildcardProjectionExclude(String...)} + * NOTE: {@link #wildcardProjectionInclude(String...)}, {@link #wildcardProjectionExclude(String...)} * can only be used for top level index definitions having an {@literal empty} or {@literal null} path. * * @param path can be {@literal null}. If {@literal null} all fields will be indexed. diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/WildcardIndexed.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/WildcardIndexed.java index 63381e1579..6ce4f54fb1 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/WildcardIndexed.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/WildcardIndexed.java @@ -119,7 +119,7 @@ /** * Explicitly specify sub fields to be in-/excluded as a {@link org.bson.Document#parse(String) prasable} String. *
- * NOTE: Can only be applied on root level documents. + * NOTE: Can only be applied on root level documents. * * @return empty by default. */ diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/Field.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/Field.java index f547f18368..5cf0408c22 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/Field.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/Field.java @@ -72,7 +72,7 @@ * {@literal null} values are not written to the target {@code Document}. Setting the value to {@link Write#ALWAYS} * explicitly adds an entry for the given field holding {@literal null} as a value {@code 'fieldName' : null }. *
- * NOTESetting the value to {@link Write#ALWAYS} may lead to increased document size. + * NOTE: Setting the value to {@link Write#ALWAYS} may lead to increased document size. * * @return {@link Write#NON_NULL} by default. * @since 3.3 diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/MongoMappingContext.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/MongoMappingContext.java index 99cf1053b2..80cbdc0ff4 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/MongoMappingContext.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/MongoMappingContext.java @@ -97,11 +97,11 @@ public void setApplicationContext(ApplicationContext applicationContext) throws /** * Returns whether auto-index creation is enabled or disabled.
- * NOTE:Index creation should happen at a well-defined time that is ideally controlled by the + * NOTE: Index creation should happen at a well-defined time that is ideally controlled by the * application itself. * * @return {@literal true} when auto-index creation is enabled; {@literal false} otherwise.
- * INFO: As of 3.x the default will is set to {@literal false} was {@literal true} in 2.x. + * INFO: As of 3.x the default will is set to {@literal false} was {@literal true} in 2.x. * @since 2.2 * @see org.springframework.data.mongodb.core.index.Indexed */ diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/Sharded.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/Sharded.java index 5bb9bd7b4b..34fd1d72d7 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/Sharded.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/Sharded.java @@ -64,7 +64,7 @@ * is either a single or multiple indexed properties that exist in every document in the collection. *
* By default the {@literal id} property is used for sharding.
- * NOTE Required indexes are not created automatically. Create these either externally, via + * NOTE: Required indexes are not created automatically. Create these either externally, via * {@link org.springframework.data.mongodb.core.index.IndexOperations#ensureIndex(org.springframework.data.mongodb.core.index.IndexDefinition)} * or by annotating your domain model with {@link org.springframework.data.mongodb.core.index.Indexed}/ * {@link org.springframework.data.mongodb.core.index.CompoundIndex} along with enabled diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/NearQuery.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/NearQuery.java index 7bb1374f8f..a47ac6fd1e 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/NearQuery.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/NearQuery.java @@ -225,7 +225,7 @@ public static NearQuery near(double x, double y, Metric metric) { /** * Creates a new {@link NearQuery} starting at the given {@link Point}.
- * NOTE There is a difference in using {@link Point} versus {@link GeoJsonPoint}. {@link Point} + * NOTE: There is a difference in using {@link Point} versus {@link GeoJsonPoint}. {@link Point} * values are rendered as coordinate pairs in the legacy format and operate upon radians, whereas the * {@link GeoJsonPoint} uses according to its specification {@literal meters} as unit of measure. This may lead to * different results when using a {@link Metrics#NEUTRAL neutral Metric}. @@ -241,7 +241,7 @@ public static NearQuery near(Point point) { * Creates a {@link NearQuery} starting near the given {@link Point} using the given {@link Metric} to adapt given * values to further configuration. E.g. setting a {@link #maxDistance(double)} will be interpreted as a value of the * initially set {@link Metric}.
- * NOTE There is a difference in using {@link Point} versus {@link GeoJsonPoint}. {@link Point} + * NOTE: There is a difference in using {@link Point} versus {@link GeoJsonPoint}. {@link Point} * values are rendered as coordinate pairs in the legacy format and operate upon radians, whereas the * {@link GeoJsonPoint} uses according to its specification {@literal meters} as unit of measure. This may lead to * different results when using a {@link Metrics#NEUTRAL neutral Metric}. diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/gridfs/ReactiveGridFsOperations.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/gridfs/ReactiveGridFsOperations.java index a7ad4427de..04c1ed1112 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/gridfs/ReactiveGridFsOperations.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/gridfs/ReactiveGridFsOperations.java @@ -173,7 +173,7 @@ default Mono store(Publisher content, @Nullable String fil /** * Returns a {@link Flux} emitting all files matching the given query.
- * Note: Currently {@link Sort} criteria defined at the {@link Query} will not be regarded as MongoDB + * NOTE: Currently {@link Sort} criteria defined at the {@link Query} will not be regarded as MongoDB * does not support ordering for GridFS file access. * * @see MongoDB Jira: JAVA-431 @@ -185,7 +185,7 @@ default Mono store(Publisher content, @Nullable String fil /** * Returns a {@link Mono} emitting a single {@link com.mongodb.client.gridfs.model.GridFSFile} matching the given * query or {@link Mono#empty()} in case no file matches.
- * NOTE If more than one file matches the given query the resulting {@link Mono} emits an error. If + * NOTE: If more than one file matches the given query the resulting {@link Mono} emits an error. If * you want to obtain the first found file use {@link #findFirst(Query)}. * * @param query must not be {@literal null}. diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/gridfs/ReactiveGridFsResource.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/gridfs/ReactiveGridFsResource.java index 477d0086c6..9f6c51aa7c 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/gridfs/ReactiveGridFsResource.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/gridfs/ReactiveGridFsResource.java @@ -136,7 +136,7 @@ public Mono getGridFSFile() { /** * Obtain the data as {@link InputStream}.
- * NOTE Buffers data in memory. Use {@link #getDownloadStream()} for large files. + * NOTE: Buffers data in memory. Use {@link #getDownloadStream()} for large files. * * @throws IllegalStateException if the underlying {@link Publisher} has already been consumed. * @see org.springframework.core.io.InputStreamResource#getInputStream()