Browse Source

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
master
Jon Skeet 23 years ago
parent
commit
eab33d1169
1 changed files with 7 additions and 6 deletions
  1. +7
    -6
      src/main/org/apache/tools/ant/filters/BaseFilterReader.java

+ 7
- 6
src/main/org/apache/tools/ant/filters/BaseFilterReader.java View File

@@ -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();


Loading…
Cancel
Save