Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
False positive report of `UnusedMethod` for methods annotated with testng's `@DataProvider` #1500
Comments
|
Same thing is happens when writing parameterized tests with |
|
For the testng dataprovider issue, it should be fixed by #1740 |
Description of the problem / feature request:
When a test class uses the
@DataProviderannotation on a private method, error-prone reportsUnusedMethod.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
This is not a completely working example, it's a redacted version of one of the classes where this occurs in my project (which is unfortunately not open source so I can't just link to the actual class), but it should show the use case. In this case the
UnusedMethodwould be reported for thedatamethod.What version of Error Prone are you using?
2.3.4
Have you found anything relevant by searching the web?
No. For now I am just disabling this warning.