AutoValuePlugin
AutoValuePlugin copied to clipboard
AutoValuePlugin does not detect change in abstract method type
Notice that the abstract method firstName()
has type Integer
. I invoked the plugin when it had type String
. "Update AutoValue generated methods" is disabled unless I also change the name of firstName()
(for example, firstNames()
).
@AutoValue
public abstract class MyClass {
@Nullable
public abstract Integer firstName();
public static Builder builder() {
return new AutoValue_MyClass.Builder();
}
@AutoValue.Builder
public abstract static class Builder {
public abstract Builder firstName(String firstName);
public abstract MyClass build();
}
}