From: Mehdi Houshmand Date: Tue, 4 Sep 2012 10:05:55 +0000 (+0000) Subject: Amended synchronized mistake made in r1380169. X-Git-Tag: fop-2_0~298 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=45102ae251426c0ec72d479d06d62c651a228825;p=xmlgraphics-fop.git Amended synchronized mistake made in r1380169. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1380514 13f79535-47bb-0310-9956-ffa450edef68 --- 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(); }