Julian Reschke created OAK-11239:
------------------------------------
Summary: Remove usage of Guava newArrayList(vargargs) in test
classes
Key: OAK-11239
URL: https://issues.apache.org/jira/browse/OAK-11239
Project: Jackrabbit Oak
Issue Type: Technical task
Components: test
Reporter: Julian Reschke
Assignee: Julian Reschke
I'm separating this from the overall removal, because:
- there are several approaches (`List.of`, `Arrays.asList`, `new Arraylist()`),
and for test cases they are easy to pick
- many of the uses are indeed in test cases because certain hardwired kinds of
lists are tested
Approach:
- replace all of them by `List.of`
- change to `Arrays.asList` when failure due to missing support of `null`
- change to `new ArrayList` when failure due to immutability
This keeps the changes in tests as readable as possible,
--
This message was sent by Atlassian Jira
(v8.20.10#820010)