LuciferYang opened a new pull request, #36393:
URL: https://github.com/apache/spark/pull/36393
### What changes were proposed in this pull request?
This is pr 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");
```
### Why are the changes needed?
A minor optimization will save a little memory due to `Arrays.asList` will
create an `E[]` but `Collections.SingletonList` not.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Pass GA
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]