From 81f12f0e05953f8cbeca9bbe40c6ab7f6b7bda46 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Wed, 1 Dec 2010 03:01:20 +0000 Subject: [PATCH] clean up a couple null checks --- src/com/fsck/k9/mail/internet/MimeUtility.java | 2 +- src/com/fsck/k9/mail/store/LocalStore.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/fsck/k9/mail/internet/MimeUtility.java b/src/com/fsck/k9/mail/internet/MimeUtility.java index 9bcae9e78..2ed393890 100644 --- a/src/com/fsck/k9/mail/internet/MimeUtility.java +++ b/src/com/fsck/k9/mail/internet/MimeUtility.java @@ -1031,7 +1031,7 @@ public class MimeUtility */ final String originalCharset = getHeaderParameter(part.getContentType(), "charset"); String charset = "ASCII"; // No encoding, so use us-ascii, which is the standard. - if ((originalCharset != null) && ("0".equals(originalCharset) == false)) + if ((originalCharset != null) && (!"0".equals(originalCharset))) { /* * See if there is conversion from the MIME charset to the Java one. diff --git a/src/com/fsck/k9/mail/store/LocalStore.java b/src/com/fsck/k9/mail/store/LocalStore.java index 2142130ec..04e6921e7 100644 --- a/src/com/fsck/k9/mail/store/LocalStore.java +++ b/src/com/fsck/k9/mail/store/LocalStore.java @@ -6148,7 +6148,7 @@ public class LocalStore extends Store implements Serializable, LocalStoreMigrati { try { - if (mToMeCalculated == false) + if (!mToMeCalculated) { for (Address address : getRecipients(RecipientType.TO)) { @@ -6177,7 +6177,7 @@ public class LocalStore extends Store implements Serializable, LocalStoreMigrati try { - if (mCcMeCalculated == false) + if (!mCcMeCalculated) { for(Address address : getRecipients(RecipientType.CC)) {