We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Rule UseProperClassLoader
Affects PMD Version: 6.32.0 (should be all versions since 3.7)
Make sure, to test with the latest PMD version.
Description:
The UseProperClassLoader will match any method called getClassLoader(), not just java.lang.Class.getClassLoader, e.g. https://javadoc.io/static/io.dropwizard/dropwizard-core/2.0.20/io/dropwizard/setup/Bootstrap.html#getClassLoader--
UseProperClassLoader
getClassLoader()
java.lang.Class.getClassLoader
Steps to reproduce:
Please provide detailed steps for how we can reproduce the bug.
bootstrap.getClassLoader()
initialize
The text was updated successfully, but these errors were encountered:
Add test case for pmd#3173
517a2e6
This has been fixed with PMD 7.0.0-rc1.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Rule UseProperClassLoader
Affects PMD Version:
6.32.0 (should be all versions since 3.7)
Make sure, to test with the latest PMD version.
Description:
The
UseProperClassLoader
will match any method calledgetClassLoader()
, not justjava.lang.Class.getClassLoader
, e.g. https://javadoc.io/static/io.dropwizard/dropwizard-core/2.0.20/io/dropwizard/setup/Bootstrap.html#getClassLoader--Steps to reproduce:
Please provide detailed steps for how we can reproduce the bug.
bootstrap.getClassLoader()
in theinitialize
method of a dropwizard app, run pmd on it.The text was updated successfully, but these errors were encountered: