Skip to content

Commit a757a9b

Browse files
michael-simonsodrotbohm
authored andcommitted
DATACMNS-1576 - Fix JavaDoc on CustomConversions.
Original pull request: #405.
1 parent a50ee6c commit a757a9b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/main/java/org/springframework/data/convert/CustomConversions.java

+9-9
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ public Optional<Class<?>> getCustomWriteTarget(Class<?> sourceType) {
236236
}
237237

238238
/**
239-
* Returns the target type we can readTargetWriteLocl an inject of the given source type to. The returned type might
240-
* be a subclass of the given expected type though. If {@code expectedTargetType} is {@literal null} we will simply
239+
* Returns the target type we can read an inject of the given source type to. The returned type might
240+
* be a subclass of the given expected type though. If {@code requestedTargetType} is {@literal null} we will simply
241241
* return the first target type matching or {@literal null} if no conversion can be found.
242242
*
243243
* @param sourceType must not be {@literal null}
@@ -255,7 +255,7 @@ public Optional<Class<?>> getCustomWriteTarget(Class<?> sourceType, Class<?> req
255255
}
256256

257257
/**
258-
* Returns whether we have a custom conversion registered to readTargetWriteLocl into a Mongo native type. The
258+
* Returns whether we have a custom conversion registered to read {@code sourceType} into a native type. The
259259
* returned type might be a subclass of the given expected type though.
260260
*
261261
* @param sourceType must not be {@literal null}
@@ -269,8 +269,8 @@ public boolean hasCustomWriteTarget(Class<?> sourceType) {
269269
}
270270

271271
/**
272-
* Returns whether we have a custom conversion registered to readTargetWriteLocl an object of the given source type
273-
* into an object of the given Mongo native target type.
272+
* Returns whether we have a custom conversion registered to read an object of the given source type
273+
* into an object of the given native target type.
274274
*
275275
* @param sourceType must not be {@literal null}.
276276
* @param targetType must not be {@literal null}.
@@ -285,7 +285,7 @@ public boolean hasCustomWriteTarget(Class<?> sourceType, Class<?> targetType) {
285285
}
286286

287287
/**
288-
* Returns whether we have a custom conversion registered to readTargetReadLock the given source into the given target
288+
* Returns whether we have a custom conversion registered to read the given source into the given target
289289
* type.
290290
*
291291
* @param sourceType must not be {@literal null}
@@ -301,8 +301,8 @@ public boolean hasCustomReadTarget(Class<?> sourceType, Class<?> targetType) {
301301
}
302302

303303
/**
304-
* Returns the actual target type for the given {@code sourceType} and {@code requestedTargetType}. Note that the
305-
* returned {@link Class} could be an assignable type to the given {@code requestedTargetType}.
304+
* Returns the actual target type for the given {@code sourceType} and {@code targetType}. Note that the
305+
* returned {@link Class} could be an assignable type to the given {@code targetType}.
306306
*
307307
* @param sourceType must not be {@literal null}.
308308
* @param targetType must not be {@literal null}.
@@ -314,7 +314,7 @@ private Class<?> getCustomReadTarget(Class<?> sourceType, Class<?> targetType) {
314314
}
315315

316316
/**
317-
* Inspects the given {@link ConvertiblePair}s for ones that have a source compatible type as source. Additionally
317+
* Inspects the given {@link ConvertiblePair ConvertiblePairs} for ones that have a source compatible type as source. Additionally
318318
* checks assignability of the target type if one is given.
319319
*
320320
* @param sourceType must not be {@literal null}.

0 commit comments

Comments
 (0)