diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/HttpConnection.java b/httpcore5/src/main/java/org/apache/hc/core5/http/HttpConnection.java index 5b0e3305b..26d42fcdb 100644 --- a/httpcore5/src/main/java/org/apache/hc/core5/http/HttpConnection.java +++ b/httpcore5/src/main/java/org/apache/hc/core5/http/HttpConnection.java @@ -42,7 +42,7 @@ public interface HttpConnection extends SocketModalCloseable { /** * Closes this connection gracefully. This method will attempt to flush the internal output * buffer prior to closing the underlying socket. This method MUST NOT be called from a - * different thread to force shutdown of the connection. Use {@link #close shutdown} instead. + * different thread to force shutdown of the connection. Use {@link #close(CloseMode) close(CloseMode.IMMEDIATE)} instead. */ @Override void close() throws IOException;