1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00

replaced for with for-each loop

This commit is contained in:
András Veres-Szentkirályi 2014-02-15 22:28:27 +01:00
parent ac1e68af78
commit 8627a3e702

View File

@ -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)) {