Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.33.0: Missing @Override false positive for record constructor #4622

Closed
nlarsson opened this issue Oct 16, 2024 · 2 comments
Closed

2.33.0: Missing @Override false positive for record constructor #4622

nlarsson opened this issue Oct 16, 2024 · 2 comments

Comments

@nlarsson
Copy link

When using constructor in record error-prone now gives a warning bout missing an override:

public record Example(int a) {
  public Example() {
    this(1);
  }
}
Example.java:[4,10] [MissingOverride] <init> is an explicitly declared accessor method for a record component; expected @Override
    (see https://errorprone.info/bugpattern/MissingOverride)
  Did you mean '@Override public Example() {'?

Suspecting that #4585 introduced this issue.

@tbroyer
Copy link
Contributor

tbroyer commented Oct 16, 2024

Fixed already in 81ae61d but not released yet

@nlarsson
Copy link
Author

Fixed already in 81ae61d but not released yet

Cool, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants