Skip to content

Commit ea08574

Browse files
committed
Fix since tag. use the correct version.
1 parent 153155f commit ea08574

File tree

5 files changed

+27
-4
lines changed

5 files changed

+27
-4
lines changed

httpclient5-testing/src/test/java/org/apache/hc/client5/testing/extension/sync/TestClientBuilder.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ default TestClientBuilder addExecInterceptorLast(String name, ExecChainHandler i
9898
throw new UnsupportedOperationException("Operation not supported by " + getProtocolLevel());
9999
}
100100

101+
/**
102+
* Configures whether the client builder should wrap requests and responses.
103+
*
104+
* @param noWrap {@code true} to disable wrapping; {@code false} to enable wrapping.
105+
* @return this builder instance.
106+
* @since 5.5
107+
*/
101108
default TestClientBuilder setNoWrap(boolean noWrap) {
102109
return this;
103110
}

httpclient5-testing/src/test/java/org/apache/hc/client5/testing/extension/sync/TestClientResources.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,14 @@ public TestClient client() throws Exception {
111111
return client;
112112
}
113113

114+
/**
115+
* Creates a configured {@link TestClient} instance.
116+
*
117+
* @param noWrap {@code true} to disable wrapping; {@code false} to enable wrapping.
118+
* @return a {@link TestClient} instance.
119+
* @throws Exception if an error occurs during client creation.
120+
* @since 5.5
121+
*/
114122
public TestClient client(final boolean noWrap) throws Exception {
115123
clientBuilder.setNoWrap(noWrap);
116124
return client();

httpclient5-testing/src/test/java/org/apache/hc/client5/testing/sync/AbstractIntegrationTestBase.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ public TestClient client() throws Exception {
7878
return testResources.client();
7979
}
8080

81+
/**
82+
* Retrieves a {@link TestClient} instance configured with the specified wrapping option.
83+
*
84+
* @param noWrap {@code true} to disable wrapping; {@code false} to enable wrapping.
85+
* @return a {@link TestClient} instance.
86+
* @throws Exception if an error occurs during client retrieval or configuration.
87+
* @since 5.5
88+
*/
8189
public TestClient client(final boolean noWrap) throws Exception {
8290
return testResources.client(noWrap);
8391
}

httpclient5/src/main/java/org/apache/hc/client5/http/entity/EntityBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ public boolean isChunked() {
330330
* Tests if the entity is to be compressed ({@code true}), or not ({@code false}).
331331
*
332332
* @return {@code true} if entity is to be compressed, {@code false} otherwise.
333-
* @since 5.4
333+
* @since 5.5
334334
*/
335335
public boolean isCompressed() {
336336
return compressed;
@@ -341,7 +341,7 @@ public boolean isCompressed() {
341341
*
342342
* @param compressed {@code true} if the entity should be compressed, {@code false} otherwise.
343343
* @return this instance.
344-
* @since 5.4
344+
* @since 5.5
345345
*/
346346
public EntityBuilder setCompressed(final boolean compressed) {
347347
this.compressed = compressed;

httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/HttpClientBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ public final HttpClientBuilder setContentDecoderRegistry(
727727
*
728728
* @param encodings a list of encoding names to support for automatic content compression and decompression
729729
* @return this {@code HttpClientBuilder} instance for method chaining
730-
* @since 5.0
730+
* @since 5.5
731731
*/
732732
public final HttpClientBuilder setEncodings(final List<String> encodings) {
733733
this.encodings = encodings;
@@ -744,7 +744,7 @@ public final HttpClientBuilder setEncodings(final List<String> encodings) {
744744
*
745745
* @param noWrap if {@code true}, disables the zlib header and trailer in deflate streams.
746746
* @return the updated {@link HttpClientBuilder} instance.
747-
* @since 5.4
747+
* @since 5.5
748748
*/
749749
public final HttpClientBuilder setNoWrap(final boolean noWrap) {
750750
this.noWrap = noWrap;

0 commit comments

Comments
 (0)