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
{{ message }}
Repository navigation
[java] BigIntegerInstantiation: False negative with compile-time constant #4158
Besides, I found the rule BigIntegerInstantiation also has similar problem. Please read the code example below:
importjava.math.BigInteger;
publicclassFoo {
finalStringstr = "1";
BigIntegerb = newBigInteger(str); // should report a warning at this line, but not
}
PMD should have reported a warning at line 4, because there is a BigInteger defintion same with predefined instances. So, this is a false negative.
changed the title [-][java] BigIntegerInstantiation false negative with compile-time constant[/-][+][java] BigIntegerInstantiation false-negative with compile-time constant[/+]on Oct 14, 2022
changed the title [-][java] BigIntegerInstantiation false-negative with compile-time constant[/-][+][java] BigIntegerInstantiation: False negative with compile-time constant[/+]on Dec 28, 2025
Activity
[-][java] BigIntegerInstantiation false negative with compile-time constant[/-][+][java] BigIntegerInstantiation false-negative with compile-time constant[/+][-][java] BigIntegerInstantiation false-negative with compile-time constant[/-][+][java] BigIntegerInstantiation: False negative with compile-time constant[/+][doc] Update release notes (#4158)
[java] Fix pmd#4158: BigIntegerInstantiation false-negative with comp…
RM-37163: CPD 7.21.0 upgrade (#8)