Polish
Closes gh-5714
This commit is contained in:
committed by
Stephane Nicoll
parent
15dee60049
commit
6d48ee9593
@@ -62,7 +62,7 @@ public abstract class JsonObjectDeserializer<T>
|
||||
/**
|
||||
* Deserialize JSON content into the value type this serializer handles.
|
||||
* @param jsonParser the source parser used for reading JSON content
|
||||
* @param context Context that can be used to access information about this
|
||||
* @param context context that can be used to access information about this
|
||||
* deserialization activity
|
||||
* @param codec the {@link ObjectCodec} associated with the parser
|
||||
* @param tree deserialized JSON content as tree expressed using set of
|
||||
@@ -76,7 +76,7 @@ public abstract class JsonObjectDeserializer<T>
|
||||
throws IOException;
|
||||
|
||||
/**
|
||||
* Helper method to extract a value from the given jsonNode or return {@code null}
|
||||
* Helper method to extract a value from the given {@code jsonNode} or return {@code null}
|
||||
* when the node itself is {@code null}.
|
||||
* @param jsonNode the source node (may be {@code null}
|
||||
* @param type the data type. May be {@link String}, {@link Boolean}, {@link Long},
|
||||
|
||||
@@ -15,6 +15,6 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Custom enhancements and support for the Jackson Project.
|
||||
* Custom enhancements and support for the Jackson project.
|
||||
*/
|
||||
package org.springframework.boot.jackson;
|
||||
|
||||
@@ -153,7 +153,7 @@ public class EmbeddedServletContainerMvcIntegrationTests {
|
||||
return new DispatcherServlet();
|
||||
// Alternatively you can use ServletContextInitializer beans including
|
||||
// ServletRegistration and FilterRegistration. Read the
|
||||
// EmbeddedWebApplicationContext javadoc for details
|
||||
// EmbeddedWebApplicationContext Javadoc for details.
|
||||
}
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -133,7 +133,7 @@ public class JsonObjectDeserializerTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void nullSafeValueWhenClassIsShouldBigDecimalReturnBigDecimal()
|
||||
public void nullSafeValueWhenClassIsBigDecimalShouldReturnBigDecimal()
|
||||
throws Exception {
|
||||
JsonNode node = mock(JsonNode.class);
|
||||
given(node.decimalValue()).willReturn(BigDecimal.TEN);
|
||||
|
||||
Reference in New Issue
Block a user