innerbuilder
innerbuilder copied to clipboard
referencing wrong field name when global style of field name is prefixed with 'm'
in Android Studio, when setting java code style with field name prefix, then generated code is wrong, here is an example of auto generated Builder:
public static final class Builder {
private int mAppId;
public Builder() {
}
public Builder appId(int val) {
appId = val;
return this;
}
public Config build() {
return new Config(this);
}
}
Here, method appId references the wrong name.