Skip to content

Commit 86e70aa

Browse files
committed
improve javadoc of wrapped stream
1 parent 5485b46 commit 86e70aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

google-http-client-apache-v5/src/main/java/com/google/api/client/http/apache/v5/Apache5ResponseContent.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
/**
88
* Class that wraps an {@link org.apache.hc.core5.http.HttpEntity}'s content {@link InputStream}
99
* along with the {@link ClassicHttpResponse} that contains this entity. The main purpose is to be
10-
* able to close the response as well as the content input stream when {@link #close()} is called.
10+
* able to close the response as well as the content input stream when {@link #close()} is called,
11+
* in order to not break the existing contract with clients using apache v4 that only required them
12+
* to close the input stream to clean up all resources.
1113
*/
1214
public class Apache5ResponseContent extends InputStream {
1315
private final ClassicHttpResponse response;

0 commit comments

Comments
 (0)