Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos. #3235

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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