On Wed, 23 Dec 2020 00:56:25 GMT, Xue-Lei Andrew Fan <[email protected]> wrote:
> If there is only one item, the call to Arrays.asList() could be replaced with > List.of() for less memory occupation. This update also includes some other > code cleanup, like redundant variables in the related files. > > Code cleanup only, no new regression test. > > Bug: https://bugs.openjdk.java.net/browse/JDK-8258852 This pull request has now been integrated. Changeset: 7ddc2b56 Author: Xue-Lei Andrew Fan <[email protected]> URL: https://git.openjdk.java.net/jdk/commit/7ddc2b56 Stats: 17 lines in 3 files changed: 0 ins; 6 del; 11 mod 8258852: Arrays.asList() for single item could be replaced with List.of() Reviewed-by: mullan ------------- PR: https://git.openjdk.java.net/jdk/pull/1872
