Affects PMD 7.0.0
Besides, I found the rule BigIntegerInstantiation also has similar problem. Please read the code example below:
import java.math.BigInteger;
public class Foo {
final String str = "1";
BigInteger b = new BigInteger(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.
Originally posted by @Belle-PL in #3847 (comment)
Affects PMD 7.0.0
Besides, I found the rule BigIntegerInstantiation also has similar problem. Please read the code example below:
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.
Originally posted by @Belle-PL in #3847 (comment)