From 3c9476fbe61584686fe09257c26a7d59756e41c5 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 10 Nov 2014 19:13:34 -0800 Subject: [PATCH] Polish --- .../boot/configurationprocessor/TypeElementMembers.java | 4 ++-- .../boot/configurationsample/specific/BuilderPojo.java | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/TypeElementMembers.java b/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/TypeElementMembers.java index 6aeec96692..b4d8b93a8c 100644 --- a/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/TypeElementMembers.java +++ b/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/TypeElementMembers.java @@ -95,8 +95,8 @@ class TypeElementMembers { } private boolean isSetterReturnType(ExecutableElement method) { - return (TypeKind.VOID == method.getReturnType().getKind() - || method.getEnclosingElement().asType().equals(method.getReturnType())); + return (TypeKind.VOID == method.getReturnType().getKind() || method + .getEnclosingElement().asType().equals(method.getReturnType())); } private String getAccessorName(String methodName) { diff --git a/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationsample/specific/BuilderPojo.java b/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationsample/specific/BuilderPojo.java index fc35adc4f4..6d8d49498e 100644 --- a/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationsample/specific/BuilderPojo.java +++ b/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationsample/specific/BuilderPojo.java @@ -19,6 +19,7 @@ package org.springframework.boot.configurationsample.specific; import org.springframework.boot.configurationsample.ConfigurationProperties; /** + * Sample with builder style setters. * * @author Stephane Nicoll */ @@ -28,7 +29,7 @@ public class BuilderPojo { private String name; public String getName() { - return name; + return this.name; } public BuilderPojo setName(String name) {