Replace 'for' loop with 'foreach'

Change-Id: I5ca01d678b8cf9e9fc75b21270329b483e31694e
This commit is contained in:
alex.ryazantsev
2013-12-04 01:02:53 +04:00
parent 2ede20d73d
commit 05872efbbd
6 changed files with 11 additions and 15 deletions

View File

@@ -176,9 +176,9 @@ public class AuthSMTPClient extends SMTPClient {
private String toHex(final byte[] b) {
final StringBuilder sec = new StringBuilder();
for (int i = 0; i < b.length; i++) {
final int u = (b[i] >> 4) & 0xf;
final int l = b[i] & 0xf;
for (byte c : b) {
final int u = (c >> 4) & 0xf;
final int l = c & 0xf;
sec.append(hexchar[u]);
sec.append(hexchar[l]);
}