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
A variable that is used by JUnit5's FieldSource annotation will be flagged as an unused variable. The FieldSource annotation was introduced in JUnit version 5.11.
Teach `UnusedVariable` to ignore fields referenced by a `@FieldSource`
annotation the same way `UnusedMethod` ignores methods referenced by a
`@MethodSource` annotation.
References: google#4713
commonquail
added a commit
to commonquail/error-prone
that referenced
this issue
Feb 21, 2025
A variable that is used by JUnit5's
FieldSource
annotation will be flagged as an unused variable. TheFieldSource
annotation was introduced in JUnit version 5.11.Example:
Output:
This is similar to #2335, where methods used by
MethodSource
were flagged as unused.The text was updated successfully, but these errors were encountered: