mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-17 07:30:16 -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) {
|
private static int qEncodedLength(byte[] bytes) {
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
for (int idx = 0; idx < bytes.length; idx++) {
|
for (byte b : bytes) {
|
||||||
int v = bytes[idx] & 0xff;
|
int v = b & 0xff;
|
||||||
if (v == 32) {
|
if (v == 32) {
|
||||||
count++;
|
count++;
|
||||||
} else if (!Q_RESTRICTED_CHARS.get(v)) {
|
} else if (!Q_RESTRICTED_CHARS.get(v)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user