Skip to content

Commit 55d7772

Browse files
committed
Better internal name
1 parent d4f9886 commit 55d7772

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

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

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,22 +163,22 @@ public Base58(final Builder builder) {
163163
* binary data.
164164
* </p>
165165
*
166-
* @param base58Data the Base58 encoded data.
166+
* @param base58 the Base58 encoded data.
167167
* @param context the context for this decoding operation.
168168
* @throws IllegalArgumentException if the Base58 data contains invalid characters.
169169
*/
170-
private void convertFromBase58(final byte[] base58Data, final Context context) {
170+
private void convertFromBase58(final byte[] base58, final Context context) {
171171
BigInteger value = BigInteger.ZERO;
172172
int leadingOnes = 0;
173-
for (final byte b : base58Data) {
173+
for (final byte b : base58) {
174174
if (b != '1') {
175175
break;
176176
}
177177
leadingOnes++;
178178
}
179179
BigInteger power = BigInteger.ONE;
180-
for (int i = base58Data.length - 1; i >= leadingOnes; i--) {
181-
final byte b = base58Data[i];
180+
for (int i = base58.length - 1; i >= leadingOnes; i--) {
181+
final byte b = base58[i];
182182
final int digit = b < DECODE_TABLE.length ? DECODE_TABLE[b] : -1;
183183
if (digit < 0) {
184184
throw new IllegalArgumentException(String.format("Invalid character in Base58 string: 0x%02x", b));

0 commit comments

Comments
 (0)