Polish
This commit is contained in:
parent
5811f6e3f5
commit
3c9476fbe6
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue