Skip to content

Commit 684e198

Browse files
authored
4.x: Remove unnecessary field length from ContentLengthInputStream (helidon-io#8915)
1 parent 6cc3cce commit 684e198

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

webclient/http1/src/main/java/io/helidon/webclient/http1/Http1CallChainBase.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,6 @@ private ClientConnection obtainConnection(WebClientServiceRequest request, Durat
304304

305305
static class ContentLengthInputStream extends InputStream {
306306
private final DataReader reader;
307-
private final long length;
308307
private final Runnable entityProcessedRunnable;
309308
private final HelidonSocket socket;
310309

@@ -319,7 +318,6 @@ static class ContentLengthInputStream extends InputStream {
319318
long length) {
320319
this.socket = socket;
321320
this.reader = reader;
322-
this.length = length;
323321
this.remainingLength = length;
324322
// we can only get the response at the time of completion, as the instance is created after this constructor
325323
// returns

0 commit comments

Comments
 (0)