[java] AvoidUsingOctalValues triggers on non-octal double literals with a leading 0 #5007
Labels
a:false-positive
PMD flags a piece of code that is not problematic
Milestone
Affects PMD Version: 7.1.0
Rule: AvoidUsingOctalValues
Description:
When a double literal has a leading 0, and ends with either
d
or.0
, the literal is not treated as an octal value. However, PMD still reports a violation.Code Sample demonstrating the issue:
Expected outcome:
PMD should only report a violation at line 3 only, but it reports on all three.
Running PMD through: Gradle
The text was updated successfully, but these errors were encountered: