Browse Source

javadoc

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@904217 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 15 years ago
parent
commit
9e21237655
1 changed files with 8 additions and 5 deletions
  1. +8
    -5
      src/main/org/apache/tools/ant/types/resources/ResourceDecorator.java

+ 8
- 5
src/main/org/apache/tools/ant/types/resources/ResourceDecorator.java View File

@@ -156,15 +156,15 @@ public abstract class ResourceDecorator extends Resource {
super.setRefid(r); super.setRefid(r);
} }


/**
* {@inheritDoc}
*/
public Object as(Class clazz) { public Object as(Class clazz) {
return getResource().as(clazz); return getResource().as(clazz);
} }


/** /**
* Delegates to a comparison of names.
* @param other the object to compare to.
* @return a negative integer, zero, or a positive integer as this Resource
* is less than, equal to, or greater than the specified Resource.
* {@inheritDoc}
*/ */
public int compareTo(Object other) { public int compareTo(Object other) {
if (other == this) { if (other == this) {
@@ -200,6 +200,9 @@ public abstract class ResourceDecorator extends Resource {
return resource; return resource;
} }


/**
* {@inheritDoc}
*/
protected void dieOnCircularReference(final Stack stack, protected void dieOnCircularReference(final Stack stack,
final Project project) final Project project)
throws BuildException { throws BuildException {
@@ -264,4 +267,4 @@ public abstract class ResourceDecorator extends Resource {
throw new BuildException("you can't change the size of a " throw new BuildException("you can't change the size of a "
+ getDataTypeName()); + getDataTypeName());
} }
}
}

Loading…
Cancel
Save