Hi
SonarJava gives me squid:S2129
Constructors should not be used to instantiate "String", "BigInteger", "BigDecimal" and primitive-wrapper classes
for this code:
String value = ...;
new BigInteger( value );
But there is no .valueOf which takes a string, only long. And the string might have a number exceeding a long.
Hence I think this is a false positive.
Workaround for me is, to change it to:
new BigInteger( value, 10 );
Regards
Frank Benoit