|
|
|
@ -278,7 +278,6 @@ public abstract class AbstractJackson2HttpMessageConverter extends AbstractGener |
|
|
|
* @param object the object to write to the output message. |
|
|
|
* @param object the object to write to the output message. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
protected void writePrefix(JsonGenerator generator, Object object) throws IOException { |
|
|
|
protected void writePrefix(JsonGenerator generator, Object object) throws IOException { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -287,7 +286,6 @@ public abstract class AbstractJackson2HttpMessageConverter extends AbstractGener |
|
|
|
* @param object the object to write to the output message. |
|
|
|
* @param object the object to write to the output message. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
protected void writeSuffix(JsonGenerator generator, Object object) throws IOException { |
|
|
|
protected void writeSuffix(JsonGenerator generator, Object object) throws IOException { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -304,11 +302,10 @@ public abstract class AbstractJackson2HttpMessageConverter extends AbstractGener |
|
|
|
* } |
|
|
|
* } |
|
|
|
* } |
|
|
|
* } |
|
|
|
* </pre> |
|
|
|
* </pre> |
|
|
|
* @param type the type to return the java type for |
|
|
|
* @param type the generic type to return the Jackson JavaType for |
|
|
|
* @param contextClass a context class for the target type, for example a class
|
|
|
|
* @param contextClass a context class for the target type, for example a class
|
|
|
|
* in which the target type appears in a method signature, can be {@code null} |
|
|
|
* in which the target type appears in a method signature (can be {@code null}) |
|
|
|
* signature, can be {@code null} |
|
|
|
* @return the Jackson JavaType |
|
|
|
* @return the java type |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
protected JavaType getJavaType(Type type, Class<?> contextClass) { |
|
|
|
protected JavaType getJavaType(Type type, Class<?> contextClass) { |
|
|
|
return this.objectMapper.getTypeFactory().constructType(type, contextClass); |
|
|
|
return this.objectMapper.getTypeFactory().constructType(type, contextClass); |
|
|
|
|