Replace 'for' loop with 'foreach'
Change-Id: I5ca01d678b8cf9e9fc75b21270329b483e31694e
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user