From 1698f9cbfcdaa231e3530a98ec6fcbf17aa6b113 Mon Sep 17 00:00:00 2001 From: Seungrae Date: Fri, 17 Jan 2025 22:36:44 +0900 Subject: [PATCH] Fix typos. Signed-off-by: Seungrae Kim --- src/main/antora/modules/ROOT/pages/entity-callbacks.adoc | 2 +- src/main/antora/modules/ROOT/pages/object-mapping.adoc | 2 +- .../antora/modules/ROOT/pages/repositories/scrolling.adoc | 4 ++-- src/main/java/org/springframework/data/mapping/Alias.java | 2 +- .../support/TransactionalRepositoryProxyPostProcessor.java | 2 +- .../springframework/data/repository/query/parser/Part.java | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/antora/modules/ROOT/pages/entity-callbacks.adoc b/src/main/antora/modules/ROOT/pages/entity-callbacks.adoc index 7c9b2c37ee..13f27a22f5 100644 --- a/src/main/antora/modules/ROOT/pages/entity-callbacks.adoc +++ b/src/main/antora/modules/ROOT/pages/entity-callbacks.adoc @@ -40,7 +40,7 @@ public interface BeforeSaveCallback extends EntityCallback { String collection); // <3> } ---- -<1> `BeforeSaveCallback` specific method to be called before an entity is saved. Returns a potentially modifed instance. +<1> `BeforeSaveCallback` specific method to be called before an entity is saved. Returns a potentially modified instance. <2> The entity right before persisting. <3> A number of store specific arguments like the _collection_ the entity is persisted to. diff --git a/src/main/antora/modules/ROOT/pages/object-mapping.adoc b/src/main/antora/modules/ROOT/pages/object-mapping.adoc index a383d8a418..7b125b0e7d 100644 --- a/src/main/antora/modules/ROOT/pages/object-mapping.adoc +++ b/src/main/antora/modules/ROOT/pages/object-mapping.adoc @@ -103,7 +103,7 @@ class Person { } Person withId(Long id) { - return new Person(id, this.firstname, this.lastame); + return new Person(id, this.firstname, this.lastname); } void setLastname(String lastname) { diff --git a/src/main/antora/modules/ROOT/pages/repositories/scrolling.adoc b/src/main/antora/modules/ROOT/pages/repositories/scrolling.adoc index 88996de64a..aa6adb3401 100644 --- a/src/main/antora/modules/ROOT/pages/repositories/scrolling.adoc +++ b/src/main/antora/modules/ROOT/pages/repositories/scrolling.adoc @@ -76,9 +76,9 @@ WindowIterator users = WindowIterator.of(position -> repository.findFirst1 [CAUTION] ==== -There is a difference between `ScollPosition.offset()` and `ScollPosition.offset(0L)`. +There is a difference between `ScrollPosition.offset()` and `ScrollPosition.offset(0L)`. The former indicates the start of scroll operation, pointing to no specific offset whereas the latter identifies the first element (at position `0`) of the result. -Given the _exclusive_ nature of scrolling, using `ScollPosition.offset(0)` skips the first element and translate to an offset of `1`. +Given the _exclusive_ nature of scrolling, using `ScrollPosition.offset(0)` skips the first element and translate to an offset of `1`. ==== [[repositories.scrolling.keyset]] diff --git a/src/main/java/org/springframework/data/mapping/Alias.java b/src/main/java/org/springframework/data/mapping/Alias.java index 2e0a1f2d2e..428a648c16 100644 --- a/src/main/java/org/springframework/data/mapping/Alias.java +++ b/src/main/java/org/springframework/data/mapping/Alias.java @@ -104,7 +104,7 @@ public boolean hasValue(Object that) { } /** - * Returns whether the the current alias is present and has the same value as the given {@link Alias}. + * Returns whether the current alias is present and has the same value as the given {@link Alias}. * * @param other the other {@link Alias} * @return {@literal true} if there's an alias value present and its equal to the one in the given {@link Alias}. diff --git a/src/main/java/org/springframework/data/repository/core/support/TransactionalRepositoryProxyPostProcessor.java b/src/main/java/org/springframework/data/repository/core/support/TransactionalRepositoryProxyPostProcessor.java index fb2af7d961..f1bd5f3c3d 100644 --- a/src/main/java/org/springframework/data/repository/core/support/TransactionalRepositoryProxyPostProcessor.java +++ b/src/main/java/org/springframework/data/repository/core/support/TransactionalRepositoryProxyPostProcessor.java @@ -80,7 +80,7 @@ public void postProcess(ProxyFactory factory, RepositoryInformation repositoryIn } /** - * Custom implementation of {@link AnnotationTransactionAttributeSource} that that slightly modify the algorithm + * Custom implementation of {@link AnnotationTransactionAttributeSource} that slightly modify the algorithm * transaction configuration is discovered. *

* The original Spring implementation favors the implementation class' transaction configuration over one declared at diff --git a/src/main/java/org/springframework/data/repository/query/parser/Part.java b/src/main/java/org/springframework/data/repository/query/parser/Part.java index 130bc7e527..419571bc9b 100644 --- a/src/main/java/org/springframework/data/repository/query/parser/Part.java +++ b/src/main/java/org/springframework/data/repository/query/parser/Part.java @@ -253,7 +253,7 @@ public Collection getKeywords() { } /** - * Returns whether the the type supports the given raw property. Default implementation checks whether the property + * Returns whether the type supports the given raw property. Default implementation checks whether the property * ends with the registered keyword. Does not support the keyword if the property is a valid field as is. * * @param property