Sonar: Class members annotated with "@VisibleForTesting" should not be accessed from production code #923
Labels
code cleanup
Fix issues reported by Sonar or any other code analysis tools
Milestone
Sonar found a case where we are using a method annotated by
@VisibleForTesting
in production code, specifically two places inProcessHelper
which are calling the package-privateProcesses#getPidOrThrow
method.Sonar thinks this is critical but I think it's pretty minor, though I concur that it needs to be addressed.
However, the fix here is to simply remove the annotation, because the usages are perfectly valid within the same package.
The text was updated successfully, but these errors were encountered: