Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 303 Bytes

UseArraysAsList.md

File metadata and controls

8 lines (5 loc) · 303 Bytes

UseArraysAsList

Category: pmd
Rule Key: pmd:UseArraysAsList


The class java.util.Arrays has a asList method that should be use when you want to create a new List from an array of objects. It is faster than executing a loop to cpy all the elements of the array one by one