From 45102ae251426c0ec72d479d06d62c651a228825 Mon Sep 17 00:00:00 2001 From: Mehdi Houshmand Date: Tue, 4 Sep 2012 10:05:55 +0000 Subject: [PATCH] Amended synchronized mistake made in r1380169. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1380514 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/events/CompositeEventListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/events/CompositeEventListener.java b/src/java/org/apache/fop/events/CompositeEventListener.java index d1f207c79..c2bef322e 100644 --- a/src/java/org/apache/fop/events/CompositeEventListener.java +++ b/src/java/org/apache/fop/events/CompositeEventListener.java @@ -51,7 +51,7 @@ public class CompositeEventListener implements EventListener { * Indicates whether any listeners have been registered with the broadcaster. * @return true if listeners are present, false otherwise */ - public boolean hasEventListeners() { + public synchronized boolean hasEventListeners() { return !listeners.isEmpty(); } -- 2.39.5