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 2002/04/03 01:08:15 UTC
cvs commit: xml-xalan/test/java/src/org/apache/qetest FileDatalet.java
curcuru 02/04/02 15:08:15
Modified: test/java/src/org/apache/qetest FileDatalet.java
Log:
Update getOptions() to never return null; this is easier to do here
rather then have callers always try to do it
Revision Changes Path
1.4 +14 -3 xml-xalan/test/java/src/org/apache/qetest/FileDatalet.java
Index: FileDatalet.java
===================================================================
RCS file: /home/cvs/xml-xalan/test/java/src/org/apache/qetest/FileDatalet.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- FileDatalet.java 26 Mar 2002 18:12:09 -0000 1.3
+++ FileDatalet.java 2 Apr 2002 23:08:15 -0000 1.4
@@ -76,7 +76,7 @@
* handling proper URI/URL's according to the RFCs.
*
* @author Shane_Curcuru@us.ibm.com
- * @version $Id: FileDatalet.java,v 1.3 2002/03/26 18:12:09 curcuru Exp $
+ * @version $Id: FileDatalet.java,v 1.4 2002/04/02 23:08:15 curcuru Exp $
*/
public class FileDatalet implements Datalet
{
@@ -168,8 +168,19 @@
*/
protected Properties options = null;
- /** Accessor method for optional properties. */
- public Properties getOptions() { return options; }
+ /**
+ * Accessor method for optional properties.
+ *
+ * Should never return null; if it has no options then
+ * it will create a blank Properties block to return.
+ */
+ public Properties getOptions()
+ {
+ if (null == options)
+ options = new Properties();
+
+ return options;
+ }
/** Accessor method for optional properties; settable. */
public void setOptions(Properties p) { options = p; }
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org