1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04: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) { 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)) {