Skip to content

Commit

Permalink
Normalize parameter names
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jul 14, 2024
1 parent d09e68b commit cd9620d
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/main/java/org/apache/commons/io/HexDump.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,30 +199,29 @@ public static void dump(final byte[] data, final long offset,
/**
* Dumps a byte value into a StringBuilder.
*
* @param _cbuffer the StringBuilder to dump the value in
* @param builder the StringBuilder to dump the value in
* @param value the byte value to be dumped
* @return StringBuilder containing the dumped value.
*/
private static StringBuilder dump(final StringBuilder _cbuffer, final byte value) {
private static StringBuilder dump(final StringBuilder builder, final byte value) {
for (int j = 0; j < 2; j++) {
_cbuffer.append(HEX_CODES[value >> SHIFTS[j + 6] & 15]);
builder.append(HEX_CODES[value >> SHIFTS[j + 6] & 15]);
}
return _cbuffer;
return builder;
}

/**
* Dumps a long value into a StringBuilder.
*
* @param _lbuffer the StringBuilder to dump the value in
* @param builder the StringBuilder to dump the value in
* @param value the long value to be dumped
* @return StringBuilder containing the dumped value.
*/
private static StringBuilder dump(final StringBuilder _lbuffer, final long value) {
private static StringBuilder dump(final StringBuilder builder, final long value) {
for (int j = 0; j < 8; j++) {
_lbuffer
.append(HEX_CODES[(int) (value >> SHIFTS[j]) & 15]);
builder.append(HEX_CODES[(int) (value >> SHIFTS[j]) & 15]);
}
return _lbuffer;
return builder;
}

/**
Expand Down

0 comments on commit cd9620d

Please sign in to comment.