This commit is contained in:
Phillip Webb 2014-11-10 19:13:34 -08:00
parent 5811f6e3f5
commit 3c9476fbe6
2 changed files with 4 additions and 3 deletions

View File

@ -95,8 +95,8 @@ class TypeElementMembers {
} }
private boolean isSetterReturnType(ExecutableElement method) { private boolean isSetterReturnType(ExecutableElement method) {
return (TypeKind.VOID == method.getReturnType().getKind() return (TypeKind.VOID == method.getReturnType().getKind() || method
|| method.getEnclosingElement().asType().equals(method.getReturnType())); .getEnclosingElement().asType().equals(method.getReturnType()));
} }
private String getAccessorName(String methodName) { private String getAccessorName(String methodName) {

View File

@ -19,6 +19,7 @@ package org.springframework.boot.configurationsample.specific;
import org.springframework.boot.configurationsample.ConfigurationProperties; import org.springframework.boot.configurationsample.ConfigurationProperties;
/** /**
* Sample with builder style setters.
* *
* @author Stephane Nicoll * @author Stephane Nicoll
*/ */
@ -28,7 +29,7 @@ public class BuilderPojo {
private String name; private String name;
public String getName() { public String getName() {
return name; return this.name;
} }
public BuilderPojo setName(String name) { public BuilderPojo setName(String name) {