1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-26 09:38:52 -05:00

combined nested if statements in MimeHeader.hasToBeEncoded

This commit is contained in:
András Veres-Szentkirályi 2012-07-06 14:23:21 +02:00
parent f79b1eb142
commit 57f364ca69

View File

@ -122,10 +122,9 @@ public class MimeHeader {
public boolean hasToBeEncoded(String text) {
for (int i = 0; i < text.length(); i++) {
char c = text.charAt(i);
if (c < 0x20 || 0x7e < c) { // non printable
if (c != 0x0a && c != 0x0d && c != 0x09) { // non LF/CR/TAB
return true;
}
if ((c < 0x20 || 0x7e < c) && // non printable
(c != 0x0a && c != 0x0d && c != 0x09)) { // non LF/CR/TAB
return true;
}
}