Skip to content

Commit

Permalink
Use final.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Gregory committed Jul 20, 2019
1 parent 9253700 commit 3e6fb93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/apache/commons/codec/binary/Hex.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3e6fb93

Please sign in to comment.