Skip to content

Commit fbdebc1

Browse files
committed
Clean up warnings that show up in Gradle build
1 parent 019d29c commit fbdebc1

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

spring-aspects/src/test/java/org/springframework/cache/config/SomeKeyGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2014 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,6 +18,6 @@
1818

1919
import org.springframework.cache.interceptor.DefaultKeyGenerator;
2020

21+
@SuppressWarnings("deprecation")
2122
public class SomeKeyGenerator extends DefaultKeyGenerator {
22-
2323
}

spring-context/src/test/java/org/springframework/aop/framework/autoproxy/AutoProxyCreatorTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
* @author Chris Beams
5151
* @since 09.12.2003
5252
*/
53+
@SuppressWarnings("resource")
5354
public final class AutoProxyCreatorTests {
5455

5556
@Test
@@ -352,6 +353,7 @@ else if (name.endsWith("ToBeProxied")) {
352353
}
353354

354355

356+
@SuppressWarnings("serial")
355357
public static class FallbackTestAutoProxyCreator extends TestAutoProxyCreator {
356358

357359
public FallbackTestAutoProxyCreator() {
@@ -381,6 +383,7 @@ public static class NoInterfaces {
381383
}
382384

383385

386+
@SuppressWarnings("serial")
384387
public static class ContainerCallbackInterfacesOnly // as well as an empty marker interface
385388
implements BeanFactoryAware, ApplicationContextAware, InitializingBean, DisposableBean, Serializable {
386389

spring-context/src/test/java/org/springframework/cache/config/SomeKeyGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2011 the original author or authors.
2+
* Copyright 2002-2014 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,6 +18,6 @@
1818

1919
import org.springframework.cache.interceptor.DefaultKeyGenerator;
2020

21+
@SuppressWarnings("deprecation")
2122
public class SomeKeyGenerator extends DefaultKeyGenerator {
22-
2323
}

spring-context/src/test/java/org/springframework/context/annotation/BeanMethodPolymorphismTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2014 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,7 +20,6 @@
2020

2121
import org.junit.Test;
2222

23-
import org.springframework.aop.Pointcut;
2423
import org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator;
2524
import org.springframework.aop.interceptor.SimpleTraceInterceptor;
2625
import org.springframework.aop.support.DefaultPointcutAdvisor;
@@ -255,6 +254,7 @@ String aString() {
255254
}
256255

257256

257+
@SuppressWarnings("serial")
258258
public static class TestAdvisor extends DefaultPointcutAdvisor {
259259

260260
public TestAdvisor() {

0 commit comments

Comments
 (0)