You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The returns receiver checker reports an error for this code, as the generated setProp method for the AutoValue Builder has @This on the return, but the method in the abstract Base.Builder class does not (so it is an invalid override).
I don't know how to automatically fix this case other than looking for all overriding methods in the visitor to decide if @This should be injected. @kelloggm any thoughts?
The text was updated successfully, but these errors were encountered:
I'll note that for now this can be worked around by adding an @This annotation to Base.Builder.setProp()'s return type. But this weakens our automatic support of AutoValue.
Here is a reduced version of a case I see in real code:
The returns receiver checker reports an error for this code, as the generated
setProp
method for the AutoValue Builder has@This
on the return, but the method in the abstractBase.Builder
class does not (so it is an invalid override).I don't know how to automatically fix this case other than looking for all overriding methods in the visitor to decide if
@This
should be injected. @kelloggm any thoughts?The text was updated successfully, but these errors were encountered: