diff --git a/hibernate-core/src/main/java/org/hibernate/event/service/internal/EventListenerGroupImpl.java b/hibernate-core/src/main/java/org/hibernate/event/service/internal/EventListenerGroupImpl.java index 2e9b8f9931..21ab4cd9f3 100644 --- a/hibernate-core/src/main/java/org/hibernate/event/service/internal/EventListenerGroupImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/event/service/internal/EventListenerGroupImpl.java @@ -80,8 +80,12 @@ class EventListenerGroupImpl implements EventListenerGroup { duplicationStrategies.add( strategy ); } - public Iterable listeners() { - return listeners == null ? Collections.emptyList() : listeners; + /** + * Implementation note: should be final for performance reasons. + */ + @Override + public final Iterable listeners() { + return listeners == null ? Collections.EMPTY_LIST : listeners; } @Override