[java] Allow @SuppressWarnings
with constants instead of literals
#520
Labels
an:enhancement
An improvement on existing features / rules
Milestone
Description:
PMD allows violation suppression through the
@SuppressWarnings
annotation, but such suppression currently only allows for a literal even when constants are valid in the Java grammar.Edge cases (initialization on a static block with arbitrary code), or calls to static methods can't be properly resolved, but the most basic case can certainly be with the current infrastructure.
Code Sample demonstrating the issue:
Running PMD through: any
The text was updated successfully, but these errors were encountered: