Compare commits

..

1 Commits

Author SHA1 Message Date
Kai S. K. Engelbart 33ebf0302b
Initialize the default event bus statically
The previous method that used double checked synchronization offers
little performance benefits over a plain static initialization.

Reported-by @harkle-the-cake
2021-10-16 08:32:28 +02:00
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ public final class EventBus {
*/
public static final int DEFAULT_PRIORITY = 100;
private static EventBus singletonInstance = new EventBus();
private static final EventBus singletonInstance = new EventBus();
private static final Logger logger = System.getLogger(EventBus.class.getName());