From 9dbd411f81ca14bd1a490bc9086a757398329bee Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Wed, 12 Feb 2020 11:04:07 +0100 Subject: [PATCH] Suppress warnings in Gradle build --- .../org/springframework/aop/framework/CglibProxyTests.java | 3 ++- .../springframework/aop/framework/JdkDynamicProxyTests.java | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/spring-context/src/test/java/org/springframework/aop/framework/CglibProxyTests.java b/spring-context/src/test/java/org/springframework/aop/framework/CglibProxyTests.java index 02a956479c..ba247ed89a 100644 --- a/spring-context/src/test/java/org/springframework/aop/framework/CglibProxyTests.java +++ b/spring-context/src/test/java/org/springframework/aop/framework/CglibProxyTests.java @@ -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 } @Test // SPR-13328 + @SuppressWarnings("unchecked") public void testVarargsWithEnumArray() { ProxyFactory proxyFactory = new ProxyFactory(new MyBean()); MyBean proxy = (MyBean) proxyFactory.getProxy(); diff --git a/spring-context/src/test/java/org/springframework/aop/framework/JdkDynamicProxyTests.java b/spring-context/src/test/java/org/springframework/aop/framework/JdkDynamicProxyTests.java index 1488d38471..306c3d4990 100644 --- a/spring-context/src/test/java/org/springframework/aop/framework/JdkDynamicProxyTests.java +++ b/spring-context/src/test/java/org/springframework/aop/framework/JdkDynamicProxyTests.java @@ -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 } @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 public interface VarargTestInterface { + @SuppressWarnings("unchecked") boolean doWithVarargs(V... args); }