Skip to content

Commit cd835b3

Browse files
committed
Merge branch '5.2.x'
# Conflicts: # spring-web/src/test/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilderTests.java # spring-web/src/test/java/org/springframework/http/converter/json/Jackson2ObjectMapperFactoryBeanTests.java
2 parents a6e4881 + 7b6293f commit cd835b3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

spring-web/src/test/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilderTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,10 +712,12 @@ public void setOffsetDateTime(OffsetDateTime offsetDateTime) {
712712
}
713713
}
714714

715+
715716
@SuppressWarnings("serial")
716717
public static class MyXmlFactory extends XmlFactory {
717718
}
718719

720+
719721
static class Foo {}
720722

721723
static class Bar {}

spring-web/src/test/java/org/springframework/http/converter/json/Jackson2ObjectMapperFactoryBeanTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public void defaultModules() throws JsonProcessingException, UnsupportedEncoding
212212
assertThat(new String(objectMapper.writeValueAsBytes(dateTime), "UTF-8")).isEqualTo(timestamp.toString());
213213
}
214214

215-
@Test // SPR-12634
215+
@Test // SPR-12634
216216
public void customizeDefaultModulesWithModuleClass() throws JsonProcessingException, UnsupportedEncodingException {
217217
this.factory.setModulesToInstall(CustomIntegerModule.class);
218218
this.factory.afterPropertiesSet();
@@ -223,7 +223,7 @@ public void customizeDefaultModulesWithModuleClass() throws JsonProcessingExcept
223223
assertThat(new String(objectMapper.writeValueAsBytes(4), "UTF-8")).contains("customid");
224224
}
225225

226-
@Test // SPR-12634
226+
@Test // SPR-12634
227227
public void customizeDefaultModulesWithSerializer() throws JsonProcessingException, UnsupportedEncodingException {
228228
Map<Class<?>, JsonSerializer<?>> serializers = new HashMap<>();
229229
serializers.put(Integer.class, new CustomIntegerSerializer());

0 commit comments

Comments
 (0)