You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by le...@locus.apache.org on 2000/12/05 23:48:30 UTC
cvs commit: xml-xerces/java/src/org/apache/xml/serialize SerializerFactory.java
lehors 00/12/05 14:48:30
Modified: java/src/org/apache/xml/serialize SerializerFactory.java
Log:
Fixed a bug in SerializerFactory.java that prevents overriding the default
factories via -D
-- patch from Chris Lee
Revision Changes Path
1.5 +2 -2 xml-xerces/java/src/org/apache/xml/serialize/SerializerFactory.java
Index: SerializerFactory.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xml/serialize/SerializerFactory.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- SerializerFactory.java 2000/08/30 18:59:22 1.4
+++ SerializerFactory.java 2000/12/05 22:48:29 1.5
@@ -69,7 +69,7 @@
/**
*
*
- * @version $Revision: 1.4 $ $Date: 2000/08/30 18:59:22 $
+ * @version $Revision: 1.5 $ $Date: 2000/12/05 22:48:29 $
* @author <a href="mailto:Scott_Boag/CAM/Lotus@lotus.com">Scott Boag</a>
* @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
*/
@@ -109,7 +109,7 @@
className = token.nextToken();
try {
factory = (SerializerFactory) Class.forName( className ).newInstance();
- if ( _factories.contains( factory.getSupportedMethod() ) )
+ if ( _factories.containsKey( factory.getSupportedMethod() ) )
_factories.put( factory.getSupportedMethod(), factory );
} catch ( Exception except ) { }
}