Initialize the Default Event Bus Statically #23

Merged
kske merged 1 commits from f/static-singleton-initialization into develop 2 months ago
kske commented 2 months ago
Owner

The previous method that used double checked synchronization offers little performance benefits over a plain static initialization.

Reported-by @harkle-the-cake

The previous method that used double checked synchronization offers little performance benefits over a plain static initialization. Reported-by @harkle-the-cake
kske added the
enhancement
label 2 months ago
kske self-assigned this 2 months ago
kske added 1 commit 2 months ago
e3213370aa
Initialize the default event bus statically
kske requested review from delvh 2 months ago
delvh approved these changes 2 months ago
public static final int DEFAULT_PRIORITY = 100;
private static volatile EventBus singletonInstance;
private static EventBus singletonInstance = new EventBus();
delvh commented 2 months ago
Poster
Collaborator

final

`final`
kske marked this conversation as resolved
kske force-pushed f/static-singleton-initialization from e3213370aa to 33ebf0302b 2 months ago
kske merged commit 866a547114 into develop 2 months ago
kske deleted branch f/static-singleton-initialization 2 months ago

Reviewers

delvh approved these changes 2 months ago
The pull request has been merged as 866a547114.
Sign in to join this conversation.
Loading…
There is no content yet.