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
This used to work on PMD 6.55.0. That is, it suppressed the PMD warning. It no longer works on 7.0.0 and I have to either put // NOPMD or put the suppression on the method.
Code Sample demonstrating the issue:
See above.
Steps to reproduce:
Have this code and run PMD on it.
Running PMD through: Gradle
Gradle 8.7, JDK 21.0.1, Linux.
P.S. Congratulations on the release!
The text was updated successfully, but these errors were encountered:
adangel
changed the title
[java] Can no longer suppress AvoidCatchingGenericException on the exception itself
[java] AvoidCatchingGenericException: Can no longer suppress on the exception itself
Mar 24, 2024
Affects PMD Version: 7.0.0
Rule: AvoidCatchingGenericException
Description:
This used to work on PMD 6.55.0. That is, it suppressed the PMD warning. It no longer works on 7.0.0 and I have to either put
// NOPMD
or put the suppression on the method.Code Sample demonstrating the issue:
See above.
Steps to reproduce:
Have this code and run PMD on it.
Running PMD through: Gradle
Gradle 8.7, JDK 21.0.1, Linux.
P.S. Congratulations on the release!
The text was updated successfully, but these errors were encountered: