thecoop commented on code in PR #14518: URL: https://github.com/apache/lucene/pull/14518#discussion_r2048959333
########## lucene/core/src/test/org/apache/lucene/index/TestAddIndexes.java: ########## @@ -810,10 +810,7 @@ public MergeSpecification findMerges(CodecReader... readers) throws IOException } for (MergePolicy.OneMerge merge : merges) { if (merge.getMergeInfo() != null) { - assertFalse( - Arrays.stream(c.destDir.listAll()) - .collect(Collectors.toSet()) - .containsAll(merge.getMergeInfo().files())); + assertFalse(Set.of(c.destDir.listAll()).containsAll(merge.getMergeInfo().files())); Review Comment: This doesn't easily translate into a matcher, so I've changed to use `Set.of` to make it a bit more readable -- 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: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org