From eab33d1169c659731e14cd02c389113105ac8883 Mon Sep 17 00:00:00 2001 From: Jon Skeet Date: Thu, 25 Apr 2002 15:14:27 +0000 Subject: [PATCH] Made the purpose of the no-arg constructor more obvious. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272574 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tools/ant/filters/BaseFilterReader.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/org/apache/tools/ant/filters/BaseFilterReader.java b/src/main/org/apache/tools/ant/filters/BaseFilterReader.java index b4736300a..d0965f29c 100644 --- a/src/main/org/apache/tools/ant/filters/BaseFilterReader.java +++ b/src/main/org/apache/tools/ant/filters/BaseFilterReader.java @@ -71,17 +71,18 @@ public abstract class BaseFilterReader /** 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();