Skip to content

Commit bdf3960

Browse files
committed
Suppress warnings in Gradle build
1 parent 32277b7 commit bdf3960

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public void testWithInstanceWithNonAspect() throws Exception {
8383
}
8484

8585
@Test
86+
@SuppressWarnings("unchecked")
8687
public void testSerializable() throws Exception {
8788
AspectJProxyFactory proxyFactory = new AspectJProxyFactory(new TestBean());
8889
proxyFactory.addAspect(LoggingAspectOnVarargs.class);
@@ -119,6 +120,7 @@ public void testWithNonSingletonAspectInstance() throws Exception {
119120
}
120121

121122
@Test // SPR-13328
123+
@SuppressWarnings("unchecked")
122124
public void testProxiedVarargsWithEnumArray() throws Exception {
123125
AspectJProxyFactory proxyFactory = new AspectJProxyFactory(new TestBean());
124126
proxyFactory.addAspect(LoggingAspectOnVarargs.class);
@@ -127,6 +129,7 @@ public void testProxiedVarargsWithEnumArray() throws Exception {
127129
}
128130

129131
@Test // SPR-13328
132+
@SuppressWarnings("unchecked")
130133
public void testUnproxiedVarargsWithEnumArray() throws Exception {
131134
AspectJProxyFactory proxyFactory = new AspectJProxyFactory(new TestBean());
132135
proxyFactory.addAspect(LoggingAspectOnSetter.class);

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
public class IndexingTests {
4444

4545
@Test
46+
@SuppressWarnings("unchecked")
4647
public void indexIntoGenericPropertyContainingMap() {
4748
Map<String, String> property = new HashMap<>();
4849
property.put("foo", "bar");
@@ -60,6 +61,7 @@ public void indexIntoGenericPropertyContainingMap() {
6061
public Object property;
6162

6263
@Test
64+
@SuppressWarnings("unchecked")
6365
public void indexIntoGenericPropertyContainingMapObject() {
6466
Map<String, Map<String, String>> property = new HashMap<>();
6567
Map<String, String> map = new HashMap<>();

0 commit comments

Comments
 (0)