Skip to content

Commit 8143ae9

Browse files
committed
Use consuming factory method
1 parent dd83c8c commit 8143ae9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

junit-platform-engine/src/main/java/org/junit/platform/engine/support/discovery/DiscoveryIssueReporter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static DiscoveryIssueReporter forwarding(EngineDiscoveryListener engineDiscovery
5959
*/
6060
static DiscoveryIssueReporter collecting(Collection<? super DiscoveryIssue> collection) {
6161
Preconditions.notNull(collection, "collection must not be null");
62-
return collection::add;
62+
return consuming(collection::add);
6363
}
6464

6565
/**

0 commit comments

Comments
 (0)