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
Description:
This static method is imported and being used. It comes from the parent interface on the outer class, but is being used by a static nested class so it must be imported.
Expected outcome:
PMD 7.0-rc1 reports a violation, but that's wrong and not reported by 6.55.
I tried to suppress at the class and method levels, but that was not honored. The only way to resolve this rule is as a ruleSet.xml exclusion, which is broader than desired.
Thanks for the tip. I had tried an @SuppressedWarnings("PMD.UnnecessaryImport"). Trying the // NOPMD on the import statement did not work, unfortunately.
Affects PMD Version:
7.0-rc1 upgrading from 6.55
Rule:
Unused static import
Description:
This static method is imported and being used. It comes from the parent interface on the outer class, but is being used by a static nested class so it must be imported.
Expected outcome:
PMD 7.0-rc1 reports a violation, but that's wrong and not reported by 6.55.
Running PMD through: Gradle
This requires workaround in gradle/gradle#24502
The text was updated successfully, but these errors were encountered: