innerbuilder icon indicating copy to clipboard operation
innerbuilder copied to clipboard

referencing wrong field name when global style of field name is prefixed with 'm'

Open fwang2002 opened this issue 3 years ago • 0 comments

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.

fwang2002 avatar Jun 01 '22 03:06 fwang2002