Initialize the Default Event Bus Statically #23
No reviewers
Labels
No Label
1
13
2
21
3
34
5
55
8
bug
core
could have
duplicate
enhancement
help wanted
must have
proc
question
should have
wont have
L
M
S
XL
bug
bugfix
discussion
documentation
feature
maintenance
postponed
refactoring
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: zdm/event-bus#23
Loading…
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();
final
e3213370aa
to33ebf0302b