Skip to content

Commit 9d74ace

Browse files
committed
Use AutoCloseable instead of JUnit closeable resource
1 parent bb8856b commit 9d74ace

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/java/com/rabbitmq/client/amqp/impl/TestUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,7 @@ static Sync sync(int count, Runnable doneCallback, String format, Object... args
572572
return new Sync(count, doneCallback, format, args);
573573
}
574574

575-
private static class CloseableResourceWrapper<T>
576-
implements ExtensionContext.Store.CloseableResource {
575+
private static class CloseableResourceWrapper<T> implements AutoCloseable {
577576

578577
private final T resource;
579578
private final Consumer<T> closing;

0 commit comments

Comments
 (0)