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> {
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 ) {
You can’t perform that action at this time.
0 commit comments