From 2353f39ee444a83cd114a1c037a9de71bbceee8c Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Sat, 26 Mar 2016 01:08:58 +0100 Subject: [PATCH] Clean up warnings --- .../JmsListenerAnnotationBeanPostProcessorTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-jms/src/test/java/org/springframework/jms/annotation/JmsListenerAnnotationBeanPostProcessorTests.java b/spring-jms/src/test/java/org/springframework/jms/annotation/JmsListenerAnnotationBeanPostProcessorTests.java index ea1dbb70f3..46a8f9fedc 100644 --- a/spring-jms/src/test/java/org/springframework/jms/annotation/JmsListenerAnnotationBeanPostProcessorTests.java +++ b/spring-jms/src/test/java/org/springframework/jms/annotation/JmsListenerAnnotationBeanPostProcessorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2015 the original author or authors. + * Copyright 2002-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -134,12 +134,12 @@ public class JmsListenerAnnotationBeanPostProcessorTests { } @Test + @SuppressWarnings("resource") public void invalidProxy() { thrown.expect(BeanCreationException.class); thrown.expectCause(is(instanceOf(IllegalStateException.class))); thrown.expectMessage("handleIt2"); - new AnnotationConfigApplicationContext( - Config.class, ProxyConfig.class, InvalidProxyTestBean.class); + new AnnotationConfigApplicationContext(Config.class, ProxyConfig.class, InvalidProxyTestBean.class); }