Skip to content

Commit f5b9381

Browse files
committed
...
1 parent ea3b7bc commit f5b9381

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/test/java/com/fasterxml/jackson/dataformat/xml/deser/Issue274PropertyNameTest.java

+6-5
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,16 @@ static class RootObject {
4848
// [dataformat-xml#274]
4949
public void testIssue274() throws Exception
5050
{
51-
final ObjectMapper xm = newMapper();
51+
final ObjectMapper xm = newMapper()
5252

5353
// serialization features
5454
// xm.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
5555
// xm.disable(SerializationFeature.FAIL_ON_EMPTY_BEANS);
56-
// deserialization features
57-
xm.enable(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT);
58-
//this is for deserialization only and means we don't need to camelCase xml property names
59-
xm.enable(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES);
56+
57+
.enable(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT)
58+
//this is for deserialization only and means we don't need to camelCase xml property names
59+
.enable(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES)
60+
;
6061

6162
RootObject obj = xm.readValue(XML, RootObject.class);
6263
assertNotNull(obj);

0 commit comments

Comments
 (0)