Browse Source

Suppress warnings in Gradle build

pull/24512/head
Sam Brannen 5 years ago
parent
commit
9dbd411f81
  1. 3
      spring-context/src/test/java/org/springframework/aop/framework/CglibProxyTests.java
  2. 4
      spring-context/src/test/java/org/springframework/aop/framework/JdkDynamicProxyTests.java

3
spring-context/src/test/java/org/springframework/aop/framework/CglibProxyTests.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2020 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.
@ -387,6 +387,7 @@ public class CglibProxyTests extends AbstractAopProxyTests implements Serializab @@ -387,6 +387,7 @@ public class CglibProxyTests extends AbstractAopProxyTests implements Serializab
}
@Test // SPR-13328
@SuppressWarnings("unchecked")
public void testVarargsWithEnumArray() {
ProxyFactory proxyFactory = new ProxyFactory(new MyBean());
MyBean proxy = (MyBean) proxyFactory.getProxy();

4
spring-context/src/test/java/org/springframework/aop/framework/JdkDynamicProxyTests.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2020 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.
@ -141,6 +141,7 @@ public class JdkDynamicProxyTests extends AbstractAopProxyTests implements Seria @@ -141,6 +141,7 @@ public class JdkDynamicProxyTests extends AbstractAopProxyTests implements Seria
}
@Test // SPR-13328
@SuppressWarnings("unchecked")
public void testVarargsWithEnumArray() {
ProxyFactory proxyFactory = new ProxyFactory(new VarargTestBean());
VarargTestInterface proxy = (VarargTestInterface) proxyFactory.getProxy();
@ -213,6 +214,7 @@ public class JdkDynamicProxyTests extends AbstractAopProxyTests implements Seria @@ -213,6 +214,7 @@ public class JdkDynamicProxyTests extends AbstractAopProxyTests implements Seria
public interface VarargTestInterface {
@SuppressWarnings("unchecked")
<V extends MyInterface> boolean doWithVarargs(V... args);
}

Loading…
Cancel
Save