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
adangel
changed the title
False Positive failure on Java 17
[java] BigIntegerInstantiation: False Positive with Java 17 and BigDecimal.TWO
Mar 25, 2024
Affects PMD Version:
7.0.0
Rule:
https://docs.pmd-code.org/pmd-doc-7.0.0/pmd_rules_java_performance.html#bigintegerinstantiation
Description:
The rule fails on Java 17.
BigDecimal.TWO was introduced in Java 19.
Code Sample demonstrating the issue:
Expected outcome:
PMD reports a violation, but that's wrong. That's a false positive.
Running PMD through: [Gradle]
The text was updated successfully, but these errors were encountered: