Skip to content

Commit 4b44d70

Browse files
Fix wrong inherited javadoc of AsyncFile#exceptionHandler (#5432)
See https://vertx.io/docs/5.0.0.CR3/apidocs/io/vertx/core/file/AsyncFile.html#exceptionHandler(io.vertx.core.Handler) The inherited javadoc say that it sets the exception handler on the read stream only. Fix: Mention that is also sets it on the write stream.
1 parent ff2c06e commit 4b44d70

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

vertx-core/src/main/java/io/vertx/core/file/AsyncFile.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011-2021 Contributors to the Eclipse Foundation
2+
* Copyright (c) 2011-2025 Contributors to the Eclipse Foundation
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License 2.0 which is available at
@@ -21,7 +21,6 @@
2121
import io.vertx.core.streams.ReadStream;
2222
import io.vertx.core.streams.WriteStream;
2323

24-
import java.util.function.Function;
2524
import java.util.function.Supplier;
2625

2726
/**
@@ -55,6 +54,12 @@ public interface AsyncFile extends ReadStream<Buffer>, WriteStream<Buffer> {
5554
@Override
5655
AsyncFile drainHandler(Handler<Void> handler);
5756

57+
/**
58+
* Set an exception handler on the read stream and on the write stream.
59+
*
60+
* @param handler the handler
61+
* @return a reference to this, so the API can be used fluently
62+
*/
5863
@Override
5964
AsyncFile exceptionHandler(Handler<Throwable> handler);
6065

0 commit comments

Comments
 (0)