Suppress build warnings in tests
This commit is contained in:
parent
0d0e879ed0
commit
5f3506ae8f
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue