Skip to content

Commit 6f0b7f6

Browse files
ngocnhan-tran1996mp911de
authored andcommitted
Fix typos.
Documentation, assertion messages. Closes #3223
1 parent 24fa60a commit 6f0b7f6

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

Diff for: src/main/antora/modules/ROOT/pages/object-mapping.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ It's an established pattern to rather use static factory methods to expose these
223223
[[mapping.general-recommendations.override.properties]]
224224
=== Overriding Properties
225225

226-
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.
226+
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.
227227
Consider the following example:
228228

229229
[source,java]
@@ -326,7 +326,7 @@ data class Person(var id: String, val name: String) {
326326
----
327327

328328
Kotlin supports parameter optionality by allowing default values to be used if a parameter is not provided.
329-
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`
329+
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`
330330

331331
[source,kotlin]
332332
----

Diff for: src/main/java/org/springframework/data/convert/PropertyValueConverterRegistrar.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public PropertyValueConverterRegistrar<P> reading(Function<R, S> reader) {
192192
* Describes how to read a database value into a domain object's property value.
193193
*
194194
* @param reader must not be {@literal null}.
195-
* @return the confiured {@link PropertyValueConverterRegistrar}.
195+
* @return the configured {@link PropertyValueConverterRegistrar}.
196196
*/
197197
@SuppressWarnings({ "rawtypes", "unchecked" })
198198
public PropertyValueConverterRegistrar<P> reading(BiFunction<R, ValueConversionContext<P>, S> reader) {

Diff for: src/main/java/org/springframework/data/mapping/model/BeanWrapper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public Object getProperty(PersistentProperty<?> property) {
117117
* @param property must not be {@literal null}.
118118
* @param type can be {@literal null}.
119119
* @return
120-
* @throws MappingException in case an exception occured when accessing the property.
120+
* @throws MappingException in case an exception occurred when accessing the property.
121121
*/
122122
@Nullable
123123
public <S> Object getProperty(PersistentProperty<?> property, Class<? extends S> type) {

Diff for: src/main/java/org/springframework/data/repository/cdi/CdiRepositoryBean.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public CdiRepositoryBean(Set<Annotation> qualifiers, Class<T> repositoryType, Be
102102

103103
Assert.notNull(qualifiers, "Qualifiers must not be null");
104104
Assert.notNull(beanManager, "BeanManager must not be null");
105-
Assert.notNull(repositoryType, "Repoitory type must not be null");
105+
Assert.notNull(repositoryType, "Repository type must not be null");
106106
Assert.isTrue(repositoryType.isInterface(), "RepositoryType must be an interface");
107107

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

128128
Assert.notNull(qualifiers, "Qualifiers must not be null");
129129
Assert.notNull(beanManager, "BeanManager must not be null");
130-
Assert.notNull(repositoryType, "Repoitory type must not be null");
130+
Assert.notNull(repositoryType, "Repository type must not be null");
131131
Assert.isTrue(repositoryType.isInterface(), "RepositoryType must be an interface");
132132

133133
this.qualifiers = qualifiers;

Diff for: src/main/java/org/springframework/data/repository/config/RepositoryComponentProvider.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ private record AllTypeFilter(List<TypeFilter> delegates) implements TypeFilter {
196196
*/
197197
private AllTypeFilter {
198198

199-
Assert.notNull(delegates, "TypeFilter deleages must not be null");
199+
Assert.notNull(delegates, "TypeFilter delegates must not be null");
200200
}
201201

202202
@Override

Diff for: src/main/java/org/springframework/data/util/AnnotatedTypeScanner.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
*/
4545
public class AnnotatedTypeScanner implements ResourceLoaderAware, EnvironmentAware {
4646

47-
private final Iterable<Class<? extends Annotation>> annotationTypess;
47+
private final Iterable<Class<? extends Annotation>> annotationTypes;
4848
private final boolean considerInterfaces;
4949

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

8585
this.considerInterfaces = considerInterfaces;
86-
this.annotationTypess = annotationTypes;
86+
this.annotationTypes = annotationTypes;
8787
}
8888

8989
@Override
@@ -146,7 +146,7 @@ Set<Class<?>> findTypes(Iterable<String> basePackages, Collection<TypeFilter> fi
146146
}
147147

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

152152
/**

0 commit comments

Comments
 (0)