AutoValuePlugin icon indicating copy to clipboard operation
AutoValuePlugin copied to clipboard

AutoValuePlugin does not detect change in abstract method type

Open jacobmarble opened this issue 7 years ago • 0 comments

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();
  }
}

jacobmarble avatar Sep 01 '17 16:09 jacobmarble