Skip to content

Commit 83fb2f1

Browse files
committed
Polishing.
Adjust grammar. Mention that we use proxies for PropertyValueConverter registration when using method handles. Original pull request: #4553 See #4536
1 parent 415e4d5 commit 83fb2f1

File tree

3 files changed

+74
-65
lines changed

3 files changed

+74
-65
lines changed

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoOperations.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -942,8 +942,8 @@ default <T> List<T> findDistinct(Query query, String field, String collection, C
942942
* Triggers <a href="https://docs.mongodb.org/manual/reference/method/db.collection.findAndModify/">findAndModify </a>
943943
* to apply provided {@link Update} on documents matching {@link Criteria} of given {@link Query}.
944944
* <p>
945-
* A potential {@link org.springframework.data.annotation.Version} property of the {@literal entityClass} will be auto
946-
* incremented if not explicitly specified in the update.
945+
* A potential {@link org.springframework.data.annotation.Version} property of the {@literal entityClass} will be
946+
* auto-incremented if not explicitly specified in the update.
947947
*
948948
* @param query the {@link Query} class that specifies the {@link Criteria} used to find a record and also an optional
949949
* fields specification. Must not be {@literal null}.
@@ -961,8 +961,8 @@ default <T> List<T> findDistinct(Query query, String field, String collection, C
961961
* Triggers <a href="https://docs.mongodb.org/manual/reference/method/db.collection.findAndModify/">findAndModify </a>
962962
* to apply provided {@link Update} on documents matching {@link Criteria} of given {@link Query}.
963963
* <p>
964-
* A potential {@link org.springframework.data.annotation.Version} property of the {@literal entityClass} will be auto
965-
* incremented if not explicitly specified in the update.
964+
* A potential {@link org.springframework.data.annotation.Version} property of the {@literal entityClass} will be
965+
* auto-incremented if not explicitly specified in the update.
966966
*
967967
* @param query the {@link Query} class that specifies the {@link Criteria} used to find a record and also an optional
968968
* fields specification. Must not be {@literal null}.
@@ -982,8 +982,8 @@ default <T> List<T> findDistinct(Query query, String field, String collection, C
982982
* to apply provided {@link Update} on documents matching {@link Criteria} of given {@link Query} taking
983983
* {@link FindAndModifyOptions} into account.
984984
* <p>
985-
* A potential {@link org.springframework.data.annotation.Version} property of the {@literal entityClass} will be auto
986-
* incremented if not explicitly specified in the update.
985+
* A potential {@link org.springframework.data.annotation.Version} property of the {@literal entityClass} will be
986+
* auto-incremented if not explicitly specified in the update.
987987
*
988988
* @param query the {@link Query} class that specifies the {@link Criteria} used to find a record and also an optional
989989
* fields specification.
@@ -1005,8 +1005,8 @@ default <T> List<T> findDistinct(Query query, String field, String collection, C
10051005
* to apply provided {@link Update} on documents matching {@link Criteria} of given {@link Query} taking
10061006
* {@link FindAndModifyOptions} into account.
10071007
* <p>
1008-
* A potential {@link org.springframework.data.annotation.Version} property of the {@literal entityClass} will be auto
1009-
* incremented if not explicitly specified in the update.
1008+
* A potential {@link org.springframework.data.annotation.Version} property of the {@literal entityClass} will be
1009+
* auto-incremented if not explicitly specified in the update.
10101010
*
10111011
* @param query the {@link Query} class that specifies the {@link Criteria} used to find a record and also an optional
10121012
* fields specification. Must not be {@literal null}.
@@ -1532,8 +1532,8 @@ default long exactCount(Query query, String collectionName) {
15321532
* Performs an upsert. If no document is found that matches the query, a new document is created and inserted by
15331533
* combining the query document and the update document.
15341534
* <p>
1535-
* A potential {@link org.springframework.data.annotation.Version} property of the {@literal entityClass} will be auto
1536-
* incremented if not explicitly specified in the update.
1535+
* A potential {@link org.springframework.data.annotation.Version} property of the {@literal entityClass} will be
1536+
* auto-incremented if not explicitly specified in the update.
15371537
* <p>
15381538
* <strong>NOTE:</strong> {@link Query#getSortObject() sorting} is not supported by {@code db.collection.updateOne}.
15391539
* Use {@link #findAndModify(Query, UpdateDefinition, FindAndModifyOptions, Class, String)} instead.
@@ -1577,8 +1577,8 @@ default long exactCount(Query query, String collectionName) {
15771577
* Performs an upsert. If no document is found that matches the query, a new document is created and inserted by
15781578
* combining the query document and the update document.
15791579
* <p>
1580-
* A potential {@link org.springframework.data.annotation.Version} property of the {@literal entityClass} will be auto
1581-
* incremented if not explicitly specified in the update.
1580+
* A potential {@link org.springframework.data.annotation.Version} property of the {@literal entityClass} will be
1581+
* auto-incremented if not explicitly specified in the update.
15821582
*
15831583
* @param query the query document that specifies the criteria used to select a record to be upserted. Must not be
15841584
* {@literal null}.
@@ -1597,8 +1597,8 @@ default long exactCount(Query query, String collectionName) {
15971597
* Updates the first object that is found in the collection of the entity class that matches the query document with
15981598
* the provided update document.
15991599
* <p>
1600-
* A potential {@link org.springframework.data.annotation.Version} property of the {@literal entityClass} will be auto
1601-
* incremented if not explicitly specified in the update.
1600+
* A potential {@link org.springframework.data.annotation.Version} property of the {@literal entityClass} will be
1601+
* auto-incremented if not explicitly specified in the update.
16021602
*
16031603
* @param query the query document that specifies the criteria used to select a record to be updated. Must not be
16041604
* {@literal null}.

0 commit comments

Comments
 (0)