Skip to content

Commit 4407bd7

Browse files
committed
Polishing
1 parent dc7ec44 commit 4407bd7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spring-context/src/test/java/org/springframework/aop/framework/CglibProxyTests.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -236,18 +236,18 @@ public int hashCode() {
236236

237237
@Test
238238
public void testMultipleProxiesForIntroductionAdvisor() {
239-
TestBean target = new TestBean();
240-
target.setAge(20);
239+
TestBean target1 = new TestBean();
240+
target1.setAge(20);
241241
TestBean target2 = new TestBean();
242242
target2.setAge(21);
243243

244-
ITestBean proxy1 = getIntroductionAdvisorProxy(target);
244+
ITestBean proxy1 = getIntroductionAdvisorProxy(target1);
245245
ITestBean proxy2 = getIntroductionAdvisorProxy(target2);
246246
assertSame("Incorrect duplicate creation of proxy classes", proxy1.getClass(), proxy2.getClass());
247247
}
248248

249249
private ITestBean getIntroductionAdvisorProxy(TestBean target) {
250-
ProxyFactory pf = new ProxyFactory(new Class<?>[] {ITestBean.class});
250+
ProxyFactory pf = new ProxyFactory(ITestBean.class);
251251
pf.setProxyTargetClass(true);
252252

253253
pf.addAdvisor(new LockMixinAdvisor());

0 commit comments

Comments
 (0)