1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 00:58:50 -05:00

Don't reference the enclosing type instance when it's not used (memory optimisation)

This commit is contained in:
Fiouz 2010-12-14 19:26:37 +00:00
parent 64b5655d7c
commit 63a8197f5a

View File

@ -4815,7 +4815,7 @@ public class MessagingController implements Runnable
}
static AtomicInteger sequencing = new AtomicInteger(0);
class Command implements Comparable<Command>
static class Command implements Comparable<Command>
{
public Runnable runnable;
@ -5110,7 +5110,7 @@ public class MessagingController implements Runnable
}
enum MemorizingState { STARTED, FINISHED, FAILED }
class Memory
static class Memory
{
Account account;
String folderName;
@ -5144,7 +5144,7 @@ public class MessagingController implements Runnable
{
return taccount.getDescription() + ":" + tfolderName;
}
class MemorizingListener extends MessagingListener
static class MemorizingListener extends MessagingListener
{
HashMap<String, Memory> memories = new HashMap<String, Memory>(31);