InsufficientStringBufferDeclaration false positve?
A source code analyzer
Brought to you by:
adangel,
juansotuyo
Hi,
maybe I have a false positve.
final StringBuilder query = new StringBuilder(128).append("Select {").append(BankDataModel.PK).append("} from {").append(BankDataModel._TYPECODE).append("} where {").append(BankDataModel.NUMBER).append("}=?number");
PMD.InsufficientStringBufferDeclaration dont realize that the constructor is initialized with 128 and think its16 (default).
final StringBuilder query = new StringBuilder(128); //no PMD warning query.append("Select {").append(BankDataModel.PK).append("} from {").append(BankDataModel._TYPECODE).append("} where {").append(BankDataModel.NUMBER).append("}=?number");
Thanks,
Mark