From bdf3960283cc26b866a5af30825a380cf6d19452 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Mon, 27 May 2019 12:15:50 +0200 Subject: [PATCH] Suppress warnings in Gradle build --- .../aop/aspectj/annotation/AspectProxyFactoryTests.java | 3 +++ .../org/springframework/expression/spel/IndexingTests.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AspectProxyFactoryTests.java b/spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AspectProxyFactoryTests.java index 6779fa7e84..e8fc775c83 100644 --- a/spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AspectProxyFactoryTests.java +++ b/spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AspectProxyFactoryTests.java @@ -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 { } @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 { } @Test // SPR-13328 + @SuppressWarnings("unchecked") public void testUnproxiedVarargsWithEnumArray() throws Exception { AspectJProxyFactory proxyFactory = new AspectJProxyFactory(new TestBean()); proxyFactory.addAspect(LoggingAspectOnSetter.class); diff --git a/spring-expression/src/test/java/org/springframework/expression/spel/IndexingTests.java b/spring-expression/src/test/java/org/springframework/expression/spel/IndexingTests.java index 1df0948824..b85ff308cd 100644 --- a/spring-expression/src/test/java/org/springframework/expression/spel/IndexingTests.java +++ b/spring-expression/src/test/java/org/springframework/expression/spel/IndexingTests.java @@ -43,6 +43,7 @@ import static org.assertj.core.api.Assertions.assertThat; public class IndexingTests { @Test + @SuppressWarnings("unchecked") public void indexIntoGenericPropertyContainingMap() { Map property = new HashMap<>(); property.put("foo", "bar"); @@ -60,6 +61,7 @@ public class IndexingTests { public Object property; @Test + @SuppressWarnings("unchecked") public void indexIntoGenericPropertyContainingMapObject() { Map> property = new HashMap<>(); Map map = new HashMap<>();