Browse Source

Fix typos in reference documentation and Javadoc.

Signed-off-by: Seungrae Kim <obey1342@gmail.com>

Closes #3235
pull/3277/head
Seungrae 1 year ago committed by Mark Paluch
parent
commit
95d9637edc
No known key found for this signature in database
GPG Key ID: 55BC6374BAA9D973
  1. 2
      src/main/antora/modules/ROOT/pages/entity-callbacks.adoc
  2. 2
      src/main/antora/modules/ROOT/pages/object-mapping.adoc
  3. 4
      src/main/antora/modules/ROOT/pages/repositories/scrolling.adoc
  4. 2
      src/main/java/org/springframework/data/mapping/Alias.java
  5. 2
      src/main/java/org/springframework/data/repository/core/support/TransactionalRepositoryProxyPostProcessor.java
  6. 2
      src/main/java/org/springframework/data/repository/query/parser/Part.java

2
src/main/antora/modules/ROOT/pages/entity-callbacks.adoc

@ -40,7 +40,7 @@ public interface BeforeSaveCallback<T> extends EntityCallback<T> {
String collection); // <3> 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. <2> The entity right before persisting.
<3> A number of store specific arguments like the _collection_ the entity is persisted to. <3> A number of store specific arguments like the _collection_ the entity is persisted to.

2
src/main/antora/modules/ROOT/pages/object-mapping.adoc

@ -103,7 +103,7 @@ class Person {
} }
Person withId(Long id) { Person withId(Long id) {
return new Person(id, this.firstname, this.lastame); return new Person(id, this.firstname, this.lastname);
} }
void setLastname(String lastname) { void setLastname(String lastname) {

4
src/main/antora/modules/ROOT/pages/repositories/scrolling.adoc

@ -76,9 +76,9 @@ WindowIterator<User> users = WindowIterator.of(position -> repository.findFirst1
[CAUTION] [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. 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]] [[repositories.scrolling.keyset]]

2
src/main/java/org/springframework/data/mapping/Alias.java

@ -104,7 +104,7 @@ public final class Alias {
} }
/** /**
* 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} * @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}. * @return {@literal true} if there's an alias value present and its equal to the one in the given {@link Alias}.

2
src/main/java/org/springframework/data/repository/core/support/TransactionalRepositoryProxyPostProcessor.java

@ -80,7 +80,7 @@ class TransactionalRepositoryProxyPostProcessor implements RepositoryProxyPostPr
} }
/** /**
* 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. * transaction configuration is discovered.
* <p> * <p>
* The original Spring implementation favors the implementation class' transaction configuration over one declared at * The original Spring implementation favors the implementation class' transaction configuration over one declared at

2
src/main/java/org/springframework/data/repository/query/parser/Part.java

@ -253,7 +253,7 @@ public class Part {
} }
/** /**
* 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. * ends with the registered keyword. Does not support the keyword if the property is a valid field as is.
* *
* @param property * @param property

Loading…
Cancel
Save