diff --git a/src/test/java/org/springframework/cache/annotation/EnableCachingIntegrationTests.java b/src/test/java/org/springframework/cache/annotation/EnableCachingIntegrationTests.java index 39d221b78e1f717b9aeb5546ca6173de433e8ff2..bf16d0cdd755b2f81f0380653e2536b20bbef91f 100644 --- a/src/test/java/org/springframework/cache/annotation/EnableCachingIntegrationTests.java +++ b/src/test/java/org/springframework/cache/annotation/EnableCachingIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2014 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. @@ -42,6 +42,7 @@ import static org.junit.Assert.*; * @author Chris Beams * @since 3.1 */ +@SuppressWarnings("resource") public class EnableCachingIntegrationTests { @Test diff --git a/src/test/java/org/springframework/context/annotation/ltw/ComponentScanningWithLTWTests.java b/src/test/java/org/springframework/context/annotation/ltw/ComponentScanningWithLTWTests.java index baa911c8f2374382d116be70a19693e0d285e2d9..7d675ff65bbcd2427d6c84acd3fba2ca083f890c 100644 --- a/src/test/java/org/springframework/context/annotation/ltw/ComponentScanningWithLTWTests.java +++ b/src/test/java/org/springframework/context/annotation/ltw/ComponentScanningWithLTWTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2014 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. @@ -24,6 +24,7 @@ import org.springframework.test.jpa.AbstractJpaTests; * * @author Ramnivas Laddad */ +@SuppressWarnings("deprecation") public class ComponentScanningWithLTWTests extends AbstractJpaTests { public ComponentScanningWithLTWTests() { diff --git a/src/test/java/org/springframework/core/env/EnvironmentIntegrationTests.java b/src/test/java/org/springframework/core/env/EnvironmentIntegrationTests.java index f30afd1ca17a65883bc646f246a265de8a89b8ed..c1649d86f15261746dca3fdb3fe8dbf60fdd764f 100644 --- a/src/test/java/org/springframework/core/env/EnvironmentIntegrationTests.java +++ b/src/test/java/org/springframework/core/env/EnvironmentIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2014 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. @@ -67,7 +67,6 @@ import static org.springframework.beans.factory.support.BeanDefinitionBuilder.*; import static org.springframework.context.ConfigurableApplicationContext.*; import static org.springframework.core.env.EnvironmentIntegrationTests.Constants.*; - /** * Integration tests for container support of {@link Environment} * interface. @@ -84,6 +83,7 @@ import static org.springframework.core.env.EnvironmentIntegrationTests.Constants * * @author Chris Beams */ +@SuppressWarnings("resource") public class EnvironmentIntegrationTests { private ConfigurableEnvironment prodEnv; diff --git a/src/test/java/org/springframework/core/env/PropertyPlaceholderConfigurerEnvironmentIntegrationTests.java b/src/test/java/org/springframework/core/env/PropertyPlaceholderConfigurerEnvironmentIntegrationTests.java index 8028a4cf0fdb5dd009b5b72c00a131f7f2527349..fb95406498ca44954277c1279cec8a63676d6d87 100644 --- a/src/test/java/org/springframework/core/env/PropertyPlaceholderConfigurerEnvironmentIntegrationTests.java +++ b/src/test/java/org/springframework/core/env/PropertyPlaceholderConfigurerEnvironmentIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2014 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. @@ -22,6 +22,7 @@ import org.junit.Test; import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer; import org.springframework.context.support.GenericApplicationContext; +@SuppressWarnings("resource") public class PropertyPlaceholderConfigurerEnvironmentIntegrationTests { @Test public void test() { diff --git a/src/test/java/org/springframework/scheduling/annotation/ScheduledAndTransactionalAnnotationIntegrationTests.java b/src/test/java/org/springframework/scheduling/annotation/ScheduledAndTransactionalAnnotationIntegrationTests.java index 8468024f994714da85340c844cd429d0ae4bbfd7..318fa211b76a527523424bceae69a076ecffabec 100644 --- a/src/test/java/org/springframework/scheduling/annotation/ScheduledAndTransactionalAnnotationIntegrationTests.java +++ b/src/test/java/org/springframework/scheduling/annotation/ScheduledAndTransactionalAnnotationIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2014 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. @@ -47,6 +47,7 @@ import static org.mockito.BDDMockito.*; * @author Chris Beams * @since 3.1 */ +@SuppressWarnings("resource") public class ScheduledAndTransactionalAnnotationIntegrationTests { @Before diff --git a/src/test/java/org/springframework/transaction/annotation/EnableTransactionManagementIntegrationTests.java b/src/test/java/org/springframework/transaction/annotation/EnableTransactionManagementIntegrationTests.java index b5eb2f8e1b2588df9c0701afe33b093c5e59379b..76f9cb955ce843ccd2e2788b68623f46c4bc2c5e 100644 --- a/src/test/java/org/springframework/transaction/annotation/EnableTransactionManagementIntegrationTests.java +++ b/src/test/java/org/springframework/transaction/annotation/EnableTransactionManagementIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2014 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. @@ -56,6 +56,7 @@ import org.springframework.transaction.interceptor.BeanFactoryTransactionAttribu * @author Chris Beams * @since 3.1 */ +@SuppressWarnings("resource") public class EnableTransactionManagementIntegrationTests { @Test diff --git a/src/test/java/org/springframework/transaction/annotation/ProxyAnnotationDiscoveryTests.java b/src/test/java/org/springframework/transaction/annotation/ProxyAnnotationDiscoveryTests.java index a3b509d8a7f335ae5b32963343d75fa8256d09b4..6acd90bcb942f4652c6b88304395eebfca191083 100644 --- a/src/test/java/org/springframework/transaction/annotation/ProxyAnnotationDiscoveryTests.java +++ b/src/test/java/org/springframework/transaction/annotation/ProxyAnnotationDiscoveryTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2014 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. @@ -36,7 +36,9 @@ import org.springframework.context.annotation.Configuration; * * @author Chris Beams */ +@SuppressWarnings("resource") public class ProxyAnnotationDiscoveryTests { + @Test public void annotatedServiceWithoutInterface_PTC_true() { AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();