Author: scheu Date: Tue Apr 29 13:43:52 2008 New Revision: 652093 URL: http://svn.apache.org/viewvc?rev=652093&view=rev Log: WSCOMMONS-325 Contributor:Rich Scheuerle Corrected caching
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/util/OMSerializerUtil.java Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/util/OMSerializerUtil.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/util/OMSerializerUtil.java?rev=652093&r1=652092&r2=652093&view=diff ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/util/OMSerializerUtil.java (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/util/OMSerializerUtil.java Tue Apr 29 13:43:52 2008 @@ -188,6 +188,12 @@ // this will always be false if the property is defined if (value != null) { ret = value.booleanValue(); + // Cache the answer + synchronized(semifore) { + cache_isSetPrefixBeforeStartElement_writer = writer; + cache_isSetPrefixBeforeStartElement = ret; + } + return ret; } } catch (IllegalArgumentException e) {