Skip to content

Commit c092202

Browse files
authored
JsonDeserializer - javadoc fix, minor changes
1 parent 89b6ffc commit c092202

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spring-kafka/src/main/java/org/springframework/kafka/support/serializer/JsonDeserializer.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,14 @@ public class JsonDeserializer<T> implements Deserializer<T> {
9797
public static final String USE_TYPE_INFO_HEADERS = "spring.json.use.type.headers";
9898

9999
/**
100-
* A method name to determine the {@link JavaType} to deserialize the key to.
100+
* A method name to determine the {@link JavaType} to deserialize the key to:
101+
* 'com.Foo.deserialize'. See {@link JsonTypeResolver#resolveType} for the signature.
101102
*/
102103
public static final String KEY_TYPE_METHOD = "spring.json.key.type.method";
103104

104105
/**
105-
* A method name to determine the {@link JavaType} to deserialize the key to.
106+
* A method name to determine the {@link JavaType} to deserialize the value to:
107+
* 'com.Foo.deserialize'. See {@link JsonTypeResolver#resolveType} for the signature.
106108
*/
107109
public static final String VALUE_TYPE_METHOD = "spring.json.value.type.method";
108110

@@ -394,7 +396,6 @@ else if (!isKey && configs.containsKey(VALUE_TYPE_METHOD)) {
394396
private void setUpTypeResolver(String method) {
395397
try {
396398
this.typeResolver = buildTypeResolver(method);
397-
return;
398399
}
399400
catch (IllegalStateException e) {
400401
if (e.getCause() instanceof NoSuchMethodException) {

0 commit comments

Comments
 (0)