Skip to content

Commit 5485a6b

Browse files
yrodierefax4ever
authored andcommitted
HSEARCH-3655 Fix typos in GsonHttpEntity
1 parent af8e6f6 commit 5485a6b

File tree

1 file changed

+4
-4
lines changed
  • backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/client/impl

1 file changed

+4
-4
lines changed

backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/client/impl/GsonHttpEntity.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ final class GsonHttpEntity implements HttpEntity, HttpAsyncContentProducer {
9393
private long contentLength;
9494

9595
/**
96-
* We can lazily compute the contentLenght, but we need to avoid changing the value
96+
* We can lazily compute the contentLength, but we need to avoid changing the value
9797
* we report over time as this confuses the Apache HTTP client as it initially defines
9898
* the encoding strategy based on this, then assumes it can rely on this being
9999
* a constant.
100100
* After the {@link #getContentLength()} was invoked at least once, freeze
101101
* the value.
102102
*/
103-
private boolean contentlengthWasProvided = false;
103+
private boolean contentLengthWasProvided = false;
104104

105105
/**
106106
* Since flow control might hint to stop producing data,
@@ -142,7 +142,7 @@ public boolean isChunked() {
142142

143143
@Override
144144
public long getContentLength() {
145-
this.contentlengthWasProvided = true;
145+
this.contentLengthWasProvided = true;
146146
return this.contentLength;
147147
}
148148

@@ -288,7 +288,7 @@ public void produceContent(ContentEncoder encoder, IOControl ioctrl) throws IOEx
288288
}
289289

290290
private void hintContentLength(long contentLength) {
291-
if ( !contentlengthWasProvided ) {
291+
if ( !contentLengthWasProvided ) {
292292
this.contentLength = contentLength;
293293
}
294294
}

0 commit comments

Comments
 (0)