You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by cu...@apache.org on 2001/09/13 20:14:22 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/serialize SerializerFactory.java
curcuru 01/09/13 11:14:22
Modified: java/src/org/apache/xalan/serialize SerializerFactory.java
Log:
Fix Bugzilla 3491: updated error message text; also updated Javadoc to
reflect @throws; note that the Javadoc is still somewhat contradictory
about returning a null on error (it appears to throw exceptions instead)
PR:3491
Submitted by:Julian.Birch@ranplc.co.uk
Revision Changes Path
1.5 +5 -1 xml-xalan/java/src/org/apache/xalan/serialize/SerializerFactory.java
Index: SerializerFactory.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/serialize/SerializerFactory.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- SerializerFactory.java 2001/06/12 19:14:53 1.4
+++ SerializerFactory.java 2001/09/13 18:14:22 1.5
@@ -95,6 +95,10 @@
*
* @param format The output format
* @return A suitable serializer, or null
+ * @throws IllegalArgumentException (apparently -sc) if method is
+ * null or an appropriate serializer can't be found
+ * @throws WrappedRuntimeException (apparently -sc) if an
+ * exception is thrown while trying to find serializer
*/
public static Serializer getSerializer(Properties format)
{
@@ -108,7 +112,7 @@
if (method == null)
throw new IllegalArgumentException(
- "The output format has not method name");
+ "The output format has a null method name");
cls = null; // (Class)_serializers.get(method);
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org