Polishing

This commit is contained in:
Juergen Hoeller 2015-06-16 22:01:58 +02:00
parent 92f1754b1e
commit d7f8fa50be
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2013 the original author or authors.
* Copyright 2002-2015 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.
@ -35,10 +35,11 @@ public class ClassWithComplexConstructor {
}
public Dependency getDependency() {
return dependency;
return this.dependency;
}
public void method() {
this.dependency.method();
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2013 the original author or authors.
* Copyright 2002-2015 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.
@ -34,8 +34,6 @@ public class ObjenesisProxyTests {
@Test
public void appliesAspectToClassWithComplexConstructor() {
@SuppressWarnings("resource")
ApplicationContext context = new ClassPathXmlApplicationContext("ObjenesisProxyTests-context.xml", getClass());
ClassWithComplexConstructor bean = context.getBean(ClassWithComplexConstructor.class);
@ -45,4 +43,5 @@ public class ObjenesisProxyTests {
assertThat(interceptor.getCount(), is(1L));
assertThat(bean.getDependency().getValue(), is(1));
}
}