cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1087886 - /cocoon/cocoon3/trunk/cocoon-optional/src/main/java/org/apache/cocoon/optional/pipeline/components/sax/jaxb/InMemoryLRUMarshallerCache.java
Date Fri, 01 Apr 2011 20:27:21 GMT
Author: simonetripodi
Date: Fri Apr  1 20:27:21 2011
New Revision: 1087886

URL: http://svn.apache.org/viewvc?rev=1087886&view=rev
Log:
making getMarshaller method synchronized avoid same marshaller is created more than once

Modified:
    cocoon/cocoon3/trunk/cocoon-optional/src/main/java/org/apache/cocoon/optional/pipeline/components/sax/jaxb/InMemoryLRUMarshallerCache.java

Modified: cocoon/cocoon3/trunk/cocoon-optional/src/main/java/org/apache/cocoon/optional/pipeline/components/sax/jaxb/InMemoryLRUMarshallerCache.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-optional/src/main/java/org/apache/cocoon/optional/pipeline/components/sax/jaxb/InMemoryLRUMarshallerCache.java?rev=1087886&r1=1087885&r2=1087886&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-optional/src/main/java/org/apache/cocoon/optional/pipeline/components/sax/jaxb/InMemoryLRUMarshallerCache.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-optional/src/main/java/org/apache/cocoon/optional/pipeline/components/sax/jaxb/InMemoryLRUMarshallerCache.java
Fri Apr  1 20:27:21 2011
@@ -89,7 +89,7 @@ final class InMemoryLRUMarshallerCache i
      * @return the JAXB Marshaller.
      * @throws JAXBException if any error occurs.
      */
-    public Marshaller getMarshaller(Class<?> clazz) throws JAXBException {
+    public synchronized Marshaller getMarshaller(Class<?> clazz) throws JAXBException
{
         if (clazz == null) {
             throw new IllegalArgumentException("Parameter 'clazz' must not be null");
         }



Mime
View raw message