Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 206 Bytes

IntegerInstantiation.md

File metadata and controls

8 lines (5 loc) · 206 Bytes

IntegerInstantiation

Category: pmd
Rule Key: pmd:IntegerInstantiation


In JDK 1.5, calling new Integer() causes memory allocation. Integer.valueOf() is more memory friendly.