reschke commented on code in PR #1839:
URL: https://github.com/apache/jackrabbit-oak/pull/1839#discussion_r1827681127
##########
oak-store-spi/src/main/java/org/apache/jackrabbit/oak/json/JsonSerializer.java:
##########
@@ -300,11 +300,11 @@ private static class JsonFilter {
private static final Pattern EVERYTHING = Pattern.compile(".*");
- private final List<Pattern> nodeIncludes = newArrayList(EVERYTHING);
+ private final List<Pattern> nodeIncludes = new
ArrayList<>(Arrays.asList(EVERYTHING));
Review Comment:
How is that a problem? An ArrayList is resizable and it was an ArrayList
already (note that this is the most conservative replacement possible).
--
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]