From 4407bd794d0968e4e7578f3b65a9f900a20dce9f Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Sun, 10 Apr 2016 05:40:35 +0200 Subject: [PATCH] Polishing --- .../springframework/aop/framework/CglibProxyTests.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 af8b1be5ea..8d997271bd 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-2015 the original author or authors. + * Copyright 2002-2016 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. @@ -236,18 +236,18 @@ public class CglibProxyTests extends AbstractAopProxyTests implements Serializab @Test public void testMultipleProxiesForIntroductionAdvisor() { - TestBean target = new TestBean(); - target.setAge(20); + TestBean target1 = new TestBean(); + target1.setAge(20); TestBean target2 = new TestBean(); target2.setAge(21); - ITestBean proxy1 = getIntroductionAdvisorProxy(target); + ITestBean proxy1 = getIntroductionAdvisorProxy(target1); ITestBean proxy2 = getIntroductionAdvisorProxy(target2); assertSame("Incorrect duplicate creation of proxy classes", proxy1.getClass(), proxy2.getClass()); } private ITestBean getIntroductionAdvisorProxy(TestBean target) { - ProxyFactory pf = new ProxyFactory(new Class[] {ITestBean.class}); + ProxyFactory pf = new ProxyFactory(ITestBean.class); pf.setProxyTargetClass(true); pf.addAdvisor(new LockMixinAdvisor());