Skip to content

Latest commit

 

History

History
4 lines (4 loc) · 303 Bytes

File metadata and controls

4 lines (4 loc) · 303 Bytes

Arrays.asList does not autobox primitive arrays, as one might expect. If you intended to autobox the primitive array, use an asList method from Guava that does autobox. If you intended to create a singleton list containing the primitive array, use Collections.singletonList to make your intent clearer.