提交 5f3506ae 编写于 作者: S Sam Brannen

Suppress build warnings in tests

上级 0d0e879e
...@@ -245,6 +245,7 @@ public class Jackson2ObjectMapperFactoryBeanTests { ...@@ -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 { ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册