From 60da8d8f67da20f954d5dfa8a1e393b91e1923cd Mon Sep 17 00:00:00 2001 From: Arturo Bernal Date: Thu, 25 Sep 2025 10:58:42 +0200 Subject: [PATCH] Fix JavaDoc for HttpConnection.close() to reference correct close(CloseMode) method --- .../src/main/java/org/apache/hc/core5/http/HttpConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 5b0e3305be..26d42fcdbf 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;