From fc3df29b2ec764f16d9ab70b16a5f551c1a8ecd5 Mon Sep 17 00:00:00 2001 From: Philippe Marschall Date: Sun, 20 Apr 2014 18:34:02 +0200 Subject: [PATCH] Clean up spring-aop tests warnings Clean up compiler warnings in the tests of spring-aop. This commit adds type parameters to all the types. --- .../annotation/AbstractAspectJAdvisorFactoryTests.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AbstractAspectJAdvisorFactoryTests.java b/spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AbstractAspectJAdvisorFactoryTests.java index 26e61840cd..971b82c5f1 100644 --- a/spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AbstractAspectJAdvisorFactoryTests.java +++ b/spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AbstractAspectJAdvisorFactoryTests.java @@ -38,6 +38,7 @@ import org.aspectj.lang.annotation.DeclarePrecedence; import org.aspectj.lang.annotation.Pointcut; import org.aspectj.lang.reflect.MethodSignature; +import org.junit.Ignore; import org.junit.Test; import org.springframework.aop.Advisor; @@ -402,8 +403,8 @@ public abstract class AbstractAspectJAdvisorFactoryTests { @Test public void testIntroductionOnTargetExcludedByTypePattern() { - LinkedList target = new LinkedList(); - List proxy = (List) createProxy(target, + LinkedList target = new LinkedList(); + List proxy = (List) createProxy(target, AopUtils.findAdvisorsThatCanApply( getFixture().getAdvisors(new SingletonMetadataAwareAspectInstanceFactory(new MakeLockable(), "someBean")), List.class @@ -431,7 +432,9 @@ public abstract class AbstractAspectJAdvisorFactoryTests { // TODO: Why does this test fail? It hasn't been run before, so it maybe never actually passed... - public void XtestIntroductionWithArgumentBinding() { + @Test + @Ignore + public void testIntroductionWithArgumentBinding() { TestBean target = new TestBean(); List advisors = getFixture().getAdvisors(