Initialize the Default Event Bus Statically #23
Reference in New Issue
Block a user
No description provided.
Delete Branch "f/static-singleton-initialization"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The previous method that used double checked synchronization offers little performance benefits over a plain static initialization.
Reported-by @harkle-the-cake
@@ -53,3 +53,3 @@public static final int DEFAULT_PRIORITY = 100;private static volatile EventBus singletonInstance;private static EventBus singletonInstance = new EventBus();finale3213370aato33ebf0302b