diff --git a/theme/src/main/java/com/github/weisj/darklaf/theme/event/ThemeEventSupport.java b/theme/src/main/java/com/github/weisj/darklaf/theme/event/ThemeEventSupport.java index e4c02196..13d50812 100644 --- a/theme/src/main/java/com/github/weisj/darklaf/theme/event/ThemeEventSupport.java +++ b/theme/src/main/java/com/github/weisj/darklaf/theme/event/ThemeEventSupport.java @@ -43,10 +43,8 @@ public class ThemeEventSupport consumer) { - for (T listener : listenerList) { - if (listener != null) { - consumer.accept(listener, event); - } - } + listenerList.forEach(listener -> { + if (listener != null) consumer.accept(listener, event); + }); } }