Skip to content

Commit 303bbaf

Browse files
committed
Don't use underscores in local variable names
1 parent 699b0a6 commit 303bbaf

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -151,21 +151,21 @@ public static byte[] toAsciiBytes(final byte[] raw) {
151151
}
152152
final int rawLength = raw.length;
153153
// get 8 times the bytes with 3 bit shifts to the left of the length
154-
final byte[] l_ascii = new byte[rawLength << 3];
154+
final byte[] ascii = new byte[rawLength << 3];
155155
/*
156156
* We decr index jj by 8 as we go along to not recompute indices using multiplication every time inside the
157157
* loop.
158158
*/
159-
for (int ii = 0, jj = l_ascii.length - 1; ii < rawLength; ii++, jj -= 8) {
159+
for (int ii = 0, jj = ascii.length - 1; ii < rawLength; ii++, jj -= 8) {
160160
for (int bits = 0; bits < BITS.length; ++bits) {
161161
if ((raw[ii] & BITS[bits]) == 0) {
162-
l_ascii[jj - bits] = '0';
162+
ascii[jj - bits] = '0';
163163
} else {
164-
l_ascii[jj - bits] = '1';
164+
ascii[jj - bits] = '1';
165165
}
166166
}
167167
}
168-
return l_ascii;
168+
return ascii;
169169
}
170170

171171
/**
@@ -182,21 +182,21 @@ public static char[] toAsciiChars(final byte[] raw) {
182182
}
183183
final int rawLength = raw.length;
184184
// get 8 times the bytes with 3 bit shifts to the left of the length
185-
final char[] l_ascii = new char[rawLength << 3];
185+
final char[] ascii = new char[rawLength << 3];
186186
/*
187187
* We decr index jj by 8 as we go along to not recompute indices using multiplication every time inside the
188188
* loop.
189189
*/
190-
for (int ii = 0, jj = l_ascii.length - 1; ii < rawLength; ii++, jj -= 8) {
190+
for (int ii = 0, jj = ascii.length - 1; ii < rawLength; ii++, jj -= 8) {
191191
for (int bits = 0; bits < BITS.length; ++bits) {
192192
if ((raw[ii] & BITS[bits]) == 0) {
193-
l_ascii[jj - bits] = '0';
193+
ascii[jj - bits] = '0';
194194
} else {
195-
l_ascii[jj - bits] = '1';
195+
ascii[jj - bits] = '1';
196196
}
197197
}
198198
}
199-
return l_ascii;
199+
return ascii;
200200
}
201201

202202
/**

0 commit comments

Comments
 (0)