HHH-13477 Make heavily invoked method final: EventListenerGroupImpl#listeners()
This commit is contained in:
parent
e532820240
commit
6e1a84b05d
|
@ -80,9 +80,12 @@ class EventListenerGroupImpl<T> implements EventListenerGroup<T> {
|
|||
duplicationStrategies.add( strategy );
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation note: should be final for performance reasons.
|
||||
*/
|
||||
@Override
|
||||
public Iterable<T> listeners() {
|
||||
return listeners == null ? Collections.emptyList() : listeners;
|
||||
public final Iterable<T> listeners() {
|
||||
return listeners == null ? Collections.EMPTY_LIST : listeners;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue