Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
3.4.0
-
None
-
None
Description
Use `Collections.singletonList` instead of `Arrays.asList` when there is only one argument.
before
List<String> one = Arrays.asList("one");
after
List<String> one = Collections.singletonList("one");