Permalink
Browse files

Suppress warnings for java.io.Closeable resources

Issue: SPR-9962
  • Loading branch information...
1 parent f833366 commit f5080f7d70685422ea4a6d5cc276fa761ed9c4b2 @sbrannen sbrannen committed Nov 10, 2012
@@ -128,6 +128,7 @@ private void setUpRequestContextIfNecessary(TestContext testContext) {
RequestContextHolder.setRequestAttributes(servletWebRequest);
if (wac instanceof ConfigurableApplicationContext) {
+ @SuppressWarnings("resource")
ConfigurableApplicationContext configurableApplicationContext = (ConfigurableApplicationContext) wac;
ConfigurableListableBeanFactory bf = configurableApplicationContext.getBeanFactory();
bf.registerResolvableDependency(MockHttpServletResponse.class, response);

0 comments on commit f5080f7

Please sign in to comment.