Suppress build warnings in tests

This commit is contained in:
Sam Brannen 2015-07-19 19:27:43 +02:00
parent 0d0e879ed0
commit 5f3506ae8f
2 changed files with 2 additions and 0 deletions

View File

@ -245,6 +245,7 @@ public class Jackson2ObjectMapperFactoryBeanTests {
}
@Test // SPR-12634
@SuppressWarnings("unchecked")
public void customizeDefaultModulesWithModuleClass() throws JsonProcessingException, UnsupportedEncodingException {
this.factory.setModulesToInstall(CustomIntegerModule.class);
this.factory.afterPropertiesSet();

View File

@ -138,6 +138,7 @@ public class DispatcherServletInitializerTests {
private static class MyBean {
}
@SuppressWarnings("serial")
private static class MyDispatcherServlet extends DispatcherServlet {
public MyDispatcherServlet(WebApplicationContext webApplicationContext) {
super(webApplicationContext);