Skip to content

Commit a2d357d

Browse files
committed
Add missing Javadoc for CloseAction.closeAutoCloseables()
1 parent a77c6fe commit a2d357d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

junit-platform-engine/src/main/java/org/junit/platform/engine/support/store/NamespacedHierarchicalStore.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,13 @@ private record Failure(Throwable throwable) {
504504
@FunctionalInterface
505505
public interface CloseAction<N> {
506506

507+
/**
508+
* Static factory method for creating a {@link CloseAction} which
509+
* {@linkplain #close(Object, Object, Object) closes} any value that
510+
* implements {@link AutoCloseable}.
511+
*
512+
* @since 6.0
513+
*/
507514
@API(status = EXPERIMENTAL, since = "6.0")
508515
static <N> CloseAction<N> closeAutoCloseables() {
509516
return (__, ___, value) -> {

0 commit comments

Comments
 (0)