From 05a8a31d4acd6b015646f63c7972033e626e9472 Mon Sep 17 00:00:00 2001 From: Fiouz Date: Tue, 14 Dec 2010 19:26:51 +0000 Subject: [PATCH] Don't reference the enclosing type instance when it's not used (memory optimisation) --- src/com/fsck/k9/mail/store/ImapStore.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/com/fsck/k9/mail/store/ImapStore.java b/src/com/fsck/k9/mail/store/ImapStore.java index a22da5818..242ac5cd3 100644 --- a/src/com/fsck/k9/mail/store/ImapStore.java +++ b/src/com/fsck/k9/mail/store/ImapStore.java @@ -2739,7 +2739,7 @@ public class ImapStore extends Store } } - class ImapMessage extends MimeMessage + static class ImapMessage extends MimeMessage { ImapMessage(String uid, Folder folder) { @@ -2778,7 +2778,7 @@ public class ImapStore extends Store } } - class ImapBodyPart extends MimeBodyPart + static class ImapBodyPart extends MimeBodyPart { public ImapBodyPart() throws MessagingException { @@ -2791,7 +2791,7 @@ public class ImapStore extends Store } } - class ImapException extends MessagingException + static class ImapException extends MessagingException { String mAlertText; @@ -3581,7 +3581,7 @@ public class ImapStore extends Store List search() throws IOException, MessagingException; } - private class FetchBodyCallback implements ImapResponseParser.IImapResponseCallback + private static class FetchBodyCallback implements ImapResponseParser.IImapResponseCallback { private HashMap mMessageMap; @@ -3610,7 +3610,7 @@ public class ImapStore extends Store } } - private class FetchPartCallback implements ImapResponseParser.IImapResponseCallback + private static class FetchPartCallback implements ImapResponseParser.IImapResponseCallback { private Part mPart;