Browse Source

add toString implementation

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@290807 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 20 years ago
parent
commit
ee8253d440
1 changed files with 12 additions and 1 deletions
  1. +12
    -1
      src/main/org/apache/tools/ant/types/resources/Restrict.java

+ 12
- 1
src/main/org/apache/tools/ant/types/resources/Restrict.java View File

@@ -53,7 +53,6 @@ outer: for (Iterator ri = w.getResourceCollection().iterator(); ri.hasNext(
}
return result;
}

};

/**
@@ -131,4 +130,16 @@ outer: for (Iterator ri = w.getResourceCollection().iterator(); ri.hasNext(
return w.isFilesystemOnly();
}

/**
* Format this Restrict collection as a String.
* @return the String value of this collection.
*/
public synchronized String toString() {
if (isReference()) {
return getCheckedRef().toString();
}
dieOnCircularReference();
return w.toString();
}

}

Loading…
Cancel
Save