From 97acd20d62cc98fd6a305678f62a5628a7207ef0 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Fri, 30 May 2014 12:52:33 +0100 Subject: [PATCH] Polish --- .../boot/cli/compiler/SmartImportCustomizer.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/SmartImportCustomizer.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/SmartImportCustomizer.java index 8ec63fb4f4..b3fe0d9091 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/SmartImportCustomizer.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/SmartImportCustomizer.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.boot.cli.compiler; import org.codehaus.groovy.ast.ClassHelper; @@ -26,7 +27,6 @@ import org.codehaus.groovy.control.customizers.ImportCustomizer; * class with the same name is not already explicitly imported. * * @author Dave Syer - * * @since 1.1 */ class SmartImportCustomizer extends ImportCustomizer { @@ -40,8 +40,8 @@ class SmartImportCustomizer extends ImportCustomizer { @Override public ImportCustomizer addImport(String alias, String className) { - if (source.getAST() - .getImport(ClassHelper.make(className).getNameWithoutPackage()) == null) { + if (this.source.getAST().getImport( + ClassHelper.make(className).getNameWithoutPackage()) == null) { super.addImport(alias, className); } return this; @@ -50,8 +50,8 @@ class SmartImportCustomizer extends ImportCustomizer { @Override public ImportCustomizer addImports(String... imports) { for (String alias : imports) { - if (source.getAST() - .getImport(ClassHelper.make(alias).getNameWithoutPackage()) == null) { + if (this.source.getAST().getImport( + ClassHelper.make(alias).getNameWithoutPackage()) == null) { super.addImports(alias); } }