Skip to content

Commit 3e6fb93

Browse files
author
Gary Gregory
committed
Use final.
1 parent 9253700 commit 3e6fb93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/main/java/org/apache/commons/codec/binary

src/main/java/org/apache/commons/codec/binary/Hex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ private static byte[] toByteArray(final ByteBuffer byteBuffer) {
252252
if (byteBuffer.hasArray()) {
253253
return byteBuffer.array();
254254
}
255-
byte[] byteArray = new byte[byteBuffer.remaining()];
255+
final byte[] byteArray = new byte[byteBuffer.remaining()];
256256
byteBuffer.get(byteArray);
257257
return byteArray;
258258
}

0 commit comments

Comments
 (0)