File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
spring-kafka/src/main/java/org/springframework/kafka/support/serializer Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -97,12 +97,14 @@ public class JsonDeserializer<T> implements Deserializer<T> {
97
97
public static final String USE_TYPE_INFO_HEADERS = "spring.json.use.type.headers" ;
98
98
99
99
/**
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.
101
102
*/
102
103
public static final String KEY_TYPE_METHOD = "spring.json.key.type.method" ;
103
104
104
105
/**
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.
106
108
*/
107
109
public static final String VALUE_TYPE_METHOD = "spring.json.value.type.method" ;
108
110
@@ -394,7 +396,6 @@ else if (!isKey && configs.containsKey(VALUE_TYPE_METHOD)) {
394
396
private void setUpTypeResolver (String method ) {
395
397
try {
396
398
this .typeResolver = buildTypeResolver (method );
397
- return ;
398
399
}
399
400
catch (IllegalStateException e ) {
400
401
if (e .getCause () instanceof NoSuchMethodException ) {
You can’t perform that action at this time.
0 commit comments