curcuru 02/01/25 11:41:22
Modified: test/java/src/org/apache/qetest/xslwrapper
TraxWrapperUtils.java
Log:
Update setAttributes behavior; if using Properties returns a null for
a value, try to explicitly get() from Hashtable instead.
Revision Changes Path
1.6 +6 -1
xml-xalan/test/java/src/org/apache/qetest/xslwrapper/TraxWrapperUtils.java
Index: TraxWrapperUtils.java
===================================================================
RCS file:
/home/cvs/xml-xalan/test/java/src/org/apache/qetest/xslwrapper/TraxWrapperUtils.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- TraxWrapperUtils.java 24 Jan 2002 20:15:07 -0000 1.5
+++ TraxWrapperUtils.java 25 Jan 2002 19:41:22 -0000 1.6
@@ -70,7 +70,7 @@
* Cheap-o utilities for Trax*Wrapper implementations.
*
* @author Shane Curcuru
- * @version $Id: TraxWrapperUtils.java,v 1.5 2002/01/24 20:15:07 curcuru Exp $
+ * @version $Id: TraxWrapperUtils.java,v 1.6 2002/01/25 19:41:22 curcuru Exp $
*/
public abstract class TraxWrapperUtils
{
@@ -170,6 +170,11 @@
{
// Attempt to use as a Properties block..
value = ((Properties)attrs).getProperty(key);
+ // But, if null, then try getting as hash anyway
+ if (null == value)
+ {
+ value = attrs.get(key);
+ }
}
catch (ClassCastException cce)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]