Skip to content

Commit

Permalink
Fix typos.
Browse files Browse the repository at this point in the history
Signed-off-by: Seungrae Kim <[email protected]>
  • Loading branch information
Seungpang committed Jan 17, 2025
1 parent ae6fa74 commit 1698f9c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/antora/modules/ROOT/pages/entity-callbacks.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public interface BeforeSaveCallback<T> extends EntityCallback<T> {
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.

Expand Down
2 changes: 1 addition & 1 deletion src/main/antora/modules/ROOT/pages/object-mapping.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ WindowIterator<User> 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]]
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/springframework/data/mapping/Alias.java
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
* <p>
* The original Spring implementation favors the implementation class' transaction configuration over one declared at
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public Collection<String> 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
Expand Down

0 comments on commit 1698f9c

Please sign in to comment.