clean up a couple null checks

This commit is contained in:
Jesse Vincent 2010-12-01 03:01:20 +00:00
parent 43d9c0a6d4
commit 81f12f0e05
2 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

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