jskeet 02/04/25 08:14:27
Modified: src/main/org/apache/tools/ant/filters BaseFilterReader.java
Log:
Made the purpose of the no-arg constructor more obvious.
Revision Changes Path
1.7 +7 -6
jakarta-ant/src/main/org/apache/tools/ant/filters/BaseFilterReader.java
Index: BaseFilterReader.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/filters/BaseFilterReader.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- BaseFilterReader.java 24 Apr 2002 12:18:56 -0000 1.6
+++ BaseFilterReader.java 25 Apr 2002 15:14:27 -0000 1.7
@@ -71,17 +71,18 @@
/** Have the parameters passed been interpreted? */
private boolean initialized = false;
- /** The Ant project */
+ /** The Ant project this filter is part of. */
private Project project = null;
/**
- * This constructor is a dummy constructor and is
- * not meant to be used by any class other than Ant's
- * introspection mechanism. This will close the filter
- * that is created making it useless for further operations.
+ * Constructor used by Ant's introspection mechanism.
+ * The original filter reader is only used for chaining
+ * purposes, never for filtering purposes (and indeed
+ * it would be useless for filtering purposes, as it has
+ * no real data to filter). ChainedReaderHelper uses
+ * this placeholder instance to create a chain of real filters.
*/
public BaseFilterReader() {
- // Dummy constructor to be invoked by Ant's Introspector
super(new StringReader(new String()));
try {
close();
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>