Skip to content

Commit cbd0465

Browse files
committed
typo
1 parent 4469c30 commit cbd0465

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

netty-utils/src/main/java/org/asynchttpclient/netty/util/Utf8ByteBufCharsetDecoder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,15 @@ public String decode(ByteBuf buf) {
191191
if (buf.isDirect()) {
192192
return buf.toString(UTF_8);
193193
}
194-
decodeHead0(buf);
194+
decodeHeap0(buf);
195195
return charBuffer.toString();
196196
}
197197

198198
public char[] decodeChars(ByteBuf buf) {
199199
if (buf.isDirect()) {
200200
return buf.toString(UTF_8).toCharArray();
201201
}
202-
decodeHead0(buf);
202+
decodeHeap0(buf);
203203
return toCharArray(charBuffer);
204204
}
205205

@@ -231,7 +231,7 @@ public char[] decodeChars(ByteBuf... bufs) {
231231
}
232232
}
233233

234-
private void decodeHead0(ByteBuf buf) {
234+
private void decodeHeap0(ByteBuf buf) {
235235
int length = buf.readableBytes();
236236
ensureCapacity(length);
237237

0 commit comments

Comments
 (0)