From d7f8fa50beb5f5e765535e3c4221db6c19893e7b Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Tue, 16 Jun 2015 22:01:58 +0200 Subject: [PATCH] Polishing --- .../aop/framework/ClassWithComplexConstructor.java | 5 +++-- .../springframework/aop/framework/ObjenesisProxyTests.java | 5 ++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-context/src/test/java/org/springframework/aop/framework/ClassWithComplexConstructor.java b/spring-context/src/test/java/org/springframework/aop/framework/ClassWithComplexConstructor.java index 7c4d79ca1cf..92118c0c5cb 100644 --- a/spring-context/src/test/java/org/springframework/aop/framework/ClassWithComplexConstructor.java +++ b/spring-context/src/test/java/org/springframework/aop/framework/ClassWithComplexConstructor.java @@ -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(); } + } diff --git a/spring-context/src/test/java/org/springframework/aop/framework/ObjenesisProxyTests.java b/spring-context/src/test/java/org/springframework/aop/framework/ObjenesisProxyTests.java index 091726adef1..2b5225efa90 100644 --- a/spring-context/src/test/java/org/springframework/aop/framework/ObjenesisProxyTests.java +++ b/spring-context/src/test/java/org/springframework/aop/framework/ObjenesisProxyTests.java @@ -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)); } + }