Version 7.4.7 (latest) reports an issue on Builder nested class attribute data. It cannot be local because is used at the WithBuilderconstructor.
public final class WithBuilder {
private final Integer data;
private WithBuilder(Builder builder) {
this.data = builder.data;
}
public Integer getData() {
return data;
}
public static Builder builder() {
return new Builder();
}
private final static class Builder {
private Integer data = 0;
public void setData(Integer data) {
this.data = data;
}
public WithBuilder build() {
return new WithBuilder(this);
}
}
}
The above code is only an example of a class much more complex that actually requires a builder pattern.
Version 7.4.7 (latest) reports an issue on
Builder
nested class attributedata
. It cannot be local because is used at theWithBuilder
constructor.The above code is only an example of a class much more complex that actually requires a builder pattern.