From 84cd3072087facfca7a657cbe85a33fbc26635d5 Mon Sep 17 00:00:00 2001 From: CoolTomatos <24667806+CoolTomatos@users.noreply.github.com> Date: Tue, 26 Nov 2024 19:46:26 +0100 Subject: [PATCH] Fix the build. --- .../hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java b/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java index c9d67c9e3..14e03cab8 100644 --- a/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java +++ b/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java @@ -1342,8 +1342,8 @@ void copyPayload(final ByteBuffer payload) { if (payload == null) { return; } - int originalLength = headerBuffer.length(); - int toCopy = payload.remaining(); + final int originalLength = headerBuffer.length(); + final int toCopy = payload.remaining(); headerBuffer.ensureCapacity(toCopy); payload.get(headerBuffer.array(), originalLength, toCopy); headerBuffer.setLength(originalLength + toCopy);