Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 346 Bytes

StringBufferInstantiationWithChar.md

File metadata and controls

8 lines (6 loc) · 346 Bytes

StringBufferInstantiationWithChar

Category: pmd
Rule Key: pmd:StringBufferInstantiationWithChar

⚠️ This rule is deprecated in favour of S1317.


StringBuffer sb = new StringBuffer('c'); The char will be converted into int to intialize StringBuffer size.