Skip to content

DATACMNS-1576 - Fix JavaDoc on CustomConversions. #405

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

Closed
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 pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
<version>2.2.0.BUILD-SNAPSHOT</version>
<version>2.2.0.DATACMNS-1576-SNAPSHOT</version>

<name>Spring Data Core</name>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ public Optional<Class<?>> getCustomWriteTarget(Class<?> sourceType) {
}

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

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

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

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

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

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