Browse Source

Suppress warnings in Gradle build

pull/23040/head
Sam Brannen 6 years ago
parent
commit
bdf3960283
  1. 3
      spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AspectProxyFactoryTests.java
  2. 2
      spring-expression/src/test/java/org/springframework/expression/spel/IndexingTests.java

3
spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AspectProxyFactoryTests.java

@ -83,6 +83,7 @@ public class AspectProxyFactoryTests { @@ -83,6 +83,7 @@ public class AspectProxyFactoryTests {
}
@Test
@SuppressWarnings("unchecked")
public void testSerializable() throws Exception {
AspectJProxyFactory proxyFactory = new AspectJProxyFactory(new TestBean());
proxyFactory.addAspect(LoggingAspectOnVarargs.class);
@ -119,6 +120,7 @@ public class AspectProxyFactoryTests { @@ -119,6 +120,7 @@ public class AspectProxyFactoryTests {
}
@Test // SPR-13328
@SuppressWarnings("unchecked")
public void testProxiedVarargsWithEnumArray() throws Exception {
AspectJProxyFactory proxyFactory = new AspectJProxyFactory(new TestBean());
proxyFactory.addAspect(LoggingAspectOnVarargs.class);
@ -127,6 +129,7 @@ public class AspectProxyFactoryTests { @@ -127,6 +129,7 @@ public class AspectProxyFactoryTests {
}
@Test // SPR-13328
@SuppressWarnings("unchecked")
public void testUnproxiedVarargsWithEnumArray() throws Exception {
AspectJProxyFactory proxyFactory = new AspectJProxyFactory(new TestBean());
proxyFactory.addAspect(LoggingAspectOnSetter.class);

2
spring-expression/src/test/java/org/springframework/expression/spel/IndexingTests.java

@ -43,6 +43,7 @@ import static org.assertj.core.api.Assertions.assertThat; @@ -43,6 +43,7 @@ import static org.assertj.core.api.Assertions.assertThat;
public class IndexingTests {
@Test
@SuppressWarnings("unchecked")
public void indexIntoGenericPropertyContainingMap() {
Map<String, String> property = new HashMap<>();
property.put("foo", "bar");
@ -60,6 +61,7 @@ public class IndexingTests { @@ -60,6 +61,7 @@ public class IndexingTests {
public Object property;
@Test
@SuppressWarnings("unchecked")
public void indexIntoGenericPropertyContainingMapObject() {
Map<String, Map<String, String>> property = new HashMap<>();
Map<String, String> map = new HashMap<>();

Loading…
Cancel
Save