File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
spring-context/src/test/java/org/springframework/aop/framework Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2015 the original author or authors.
2
+ * Copyright 2002-2016 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -236,18 +236,18 @@ public int hashCode() {
236
236
237
237
@ Test
238
238
public void testMultipleProxiesForIntroductionAdvisor () {
239
- TestBean target = new TestBean ();
240
- target .setAge (20 );
239
+ TestBean target1 = new TestBean ();
240
+ target1 .setAge (20 );
241
241
TestBean target2 = new TestBean ();
242
242
target2 .setAge (21 );
243
243
244
- ITestBean proxy1 = getIntroductionAdvisorProxy (target );
244
+ ITestBean proxy1 = getIntroductionAdvisorProxy (target1 );
245
245
ITestBean proxy2 = getIntroductionAdvisorProxy (target2 );
246
246
assertSame ("Incorrect duplicate creation of proxy classes" , proxy1 .getClass (), proxy2 .getClass ());
247
247
}
248
248
249
249
private ITestBean getIntroductionAdvisorProxy (TestBean target ) {
250
- ProxyFactory pf = new ProxyFactory (new Class <?>[] { ITestBean .class } );
250
+ ProxyFactory pf = new ProxyFactory (ITestBean .class );
251
251
pf .setProxyTargetClass (true );
252
252
253
253
pf .addAdvisor (new LockMixinAdvisor ());
You can’t perform that action at this time.
0 commit comments