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
1 changed files with 2 additions and 2 deletions

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