*
* @return Reusable instance of {@link ListenersBroker}.
*/
+ // FIXME: remove this global singleton
public static synchronized ListenersBroker getInstance() {
if (listenersBroker == null) {
listenersBroker = new ListenersBroker();
}
@SuppressWarnings({"checkstyle:IllegalCatch"})
- private void removeAndCloseNotificationListenerTemplate(NotificationListenerAdapter listener) {
+ private void removeAndCloseNotificationListenerTemplate(final NotificationListenerAdapter listener) {
try {
requireNonNull(listener).close();
if (notificationListeners.inverse().remove(listener) == null) {