From 3e6fb93250fb951ccd3b9597cd19b1c2243a77b1 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sat, 20 Jul 2019 10:55:28 -0400 Subject: [PATCH] Use final. --- src/main/java/org/apache/commons/codec/binary/Hex.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/codec/binary/Hex.java b/src/main/java/org/apache/commons/codec/binary/Hex.java index 4129a5f5ab..0097f099d0 100644 --- a/src/main/java/org/apache/commons/codec/binary/Hex.java +++ b/src/main/java/org/apache/commons/codec/binary/Hex.java @@ -252,7 +252,7 @@ private static byte[] toByteArray(final ByteBuffer byteBuffer) { if (byteBuffer.hasArray()) { return byteBuffer.array(); } - byte[] byteArray = new byte[byteBuffer.remaining()]; + final byte[] byteArray = new byte[byteBuffer.remaining()]; byteBuffer.get(byteArray); return byteArray; }