Suppress build warnings in tests
This commit is contained in:
@@ -245,6 +245,7 @@ public class Jackson2ObjectMapperFactoryBeanTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test // SPR-12634
|
@Test // SPR-12634
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public void customizeDefaultModulesWithModuleClass() throws JsonProcessingException, UnsupportedEncodingException {
|
public void customizeDefaultModulesWithModuleClass() throws JsonProcessingException, UnsupportedEncodingException {
|
||||||
this.factory.setModulesToInstall(CustomIntegerModule.class);
|
this.factory.setModulesToInstall(CustomIntegerModule.class);
|
||||||
this.factory.afterPropertiesSet();
|
this.factory.afterPropertiesSet();
|
||||||
|
|||||||
@@ -138,6 +138,7 @@ public class DispatcherServletInitializerTests {
|
|||||||
private static class MyBean {
|
private static class MyBean {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
private static class MyDispatcherServlet extends DispatcherServlet {
|
private static class MyDispatcherServlet extends DispatcherServlet {
|
||||||
public MyDispatcherServlet(WebApplicationContext webApplicationContext) {
|
public MyDispatcherServlet(WebApplicationContext webApplicationContext) {
|
||||||
super(webApplicationContext);
|
super(webApplicationContext);
|
||||||
|
|||||||
Reference in New Issue
Block a user