You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/07/20 15:03:47 UTC

[commons-codec] 01/03: Use final.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-codec.git

commit 3e6fb93250fb951ccd3b9597cd19b1c2243a77b1
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Jul 20 10:55:28 2019 -0400

    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 4129a5f..0097f09 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 @@ public class Hex implements BinaryEncoder, BinaryDecoder {
         if (byteBuffer.hasArray()) {
             return byteBuffer.array();
         }
-        byte[] byteArray = new byte[byteBuffer.remaining()];
+        final byte[] byteArray = new byte[byteBuffer.remaining()];
         byteBuffer.get(byteArray);
         return byteArray;
     }