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 typo #3223

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
4 changes: 2 additions & 2 deletions src/main/antora/modules/ROOT/pages/object-mapping.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ It's an established pattern to rather use static factory methods to expose these
[[mapping.general-recommendations.override.properties]]
=== Overriding Properties

Java's allows a flexible design of domain classes where a subclass could define a property that is already declared with the same name in its superclass.
Java allows a flexible design of domain classes where a subclass could define a property that is already declared with the same name in its superclass.
Consider the following example:

[source,java]
Expand Down Expand Up @@ -326,7 +326,7 @@ data class Person(var id: String, val name: String) {
----

Kotlin supports parameter optionality by allowing default values to be used if a parameter is not provided.
When Spring Data detects a constructor with parameter defaulting, then it leaves these parameters absent if the data store does not provide a value (or simply returns `null`) so Kotlin can apply parameter defaulting.Consider the following class that applies parameter defaulting for `name`
When Spring Data detects a constructor with parameter defaulting, then it leaves these parameters absent if the data store does not provide a value (or simply returns `null`) so Kotlin can apply parameter defaulting. Consider the following class that applies parameter defaulting for `name`

[source,kotlin]
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public PropertyValueConverterRegistrar<P> reading(Function<R, S> reader) {
* Describes how to read a database value into a domain object's property value.
*
* @param reader must not be {@literal null}.
* @return the confiured {@link PropertyValueConverterRegistrar}.
* @return the configured {@link PropertyValueConverterRegistrar}.
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
public PropertyValueConverterRegistrar<P> reading(BiFunction<R, ValueConversionContext<P>, S> reader) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public Object getProperty(PersistentProperty<?> property) {
* @param property must not be {@literal null}.
* @param type can be {@literal null}.
* @return
* @throws MappingException in case an exception occured when accessing the property.
* @throws MappingException in case an exception occurred when accessing the property.
*/
@Nullable
public <S> Object getProperty(PersistentProperty<?> property, Class<? extends S> type) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public CdiRepositoryBean(Set<Annotation> qualifiers, Class<T> repositoryType, Be

Assert.notNull(qualifiers, "Qualifiers must not be null");
Assert.notNull(beanManager, "BeanManager must not be null");
Assert.notNull(repositoryType, "Repoitory type must not be null");
Assert.notNull(repositoryType, "Repository type must not be null");
Assert.isTrue(repositoryType.isInterface(), "RepositoryType must be an interface");

this.qualifiers = qualifiers;
Expand All @@ -127,7 +127,7 @@ public CdiRepositoryBean(Set<Annotation> qualifiers, Class<T> repositoryType, Be

Assert.notNull(qualifiers, "Qualifiers must not be null");
Assert.notNull(beanManager, "BeanManager must not be null");
Assert.notNull(repositoryType, "Repoitory type must not be null");
Assert.notNull(repositoryType, "Repository type must not be null");
Assert.isTrue(repositoryType.isInterface(), "RepositoryType must be an interface");

this.qualifiers = qualifiers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private record AllTypeFilter(List<TypeFilter> delegates) implements TypeFilter {
*/
private AllTypeFilter {

Assert.notNull(delegates, "TypeFilter deleages must not be null");
Assert.notNull(delegates, "TypeFilter delegates must not be null");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
*/
public class AnnotatedTypeScanner implements ResourceLoaderAware, EnvironmentAware {

private final Iterable<Class<? extends Annotation>> annotationTypess;
private final Iterable<Class<? extends Annotation>> annotationTypes;
private final boolean considerInterfaces;

private @Nullable ResourceLoader resourceLoader;
Expand Down Expand Up @@ -83,7 +83,7 @@ public AnnotatedTypeScanner(boolean considerInterfaces, Class<? extends Annotati
public AnnotatedTypeScanner(boolean considerInterfaces, Collection<Class<? extends Annotation>> annotationTypes) {

this.considerInterfaces = considerInterfaces;
this.annotationTypess = annotationTypes;
this.annotationTypes = annotationTypes;
}

@Override
Expand Down Expand Up @@ -146,7 +146,7 @@ Set<Class<?>> findTypes(Iterable<String> basePackages, Collection<TypeFilter> fi
}

public Set<Class<?>> findTypes(Iterable<String> basePackages) {
return findTypes(basePackages, Streamable.of(annotationTypess).stream().map(annotation -> new AnnotationTypeFilter(annotation, true, considerInterfaces)).collect(Collectors.toSet()));
return findTypes(basePackages, Streamable.of(annotationTypes).stream().map(annotation -> new AnnotationTypeFilter(annotation, true, considerInterfaces)).collect(Collectors.toSet()));
}

/**
Expand Down
Loading