mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
replaced for with for-each loop
This commit is contained in:
parent
ac1e68af78
commit
8627a3e702
@ -130,8 +130,8 @@ public class EncoderUtil {
|
||||
private static int qEncodedLength(byte[] bytes) {
|
||||
int count = 0;
|
||||
|
||||
for (int idx = 0; idx < bytes.length; idx++) {
|
||||
int v = bytes[idx] & 0xff;
|
||||
for (byte b : bytes) {
|
||||
int v = b & 0xff;
|
||||
if (v == 32) {
|
||||
count++;
|
||||
} else if (!Q_RESTRICTED_CHARS.get(v)) {
|
||||
|
Loading…
Reference in New Issue
Block a user