Browse Source

line up with some other exception throwing utility methods e.g. in DataType

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

+ 4
- 4
src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionWrapper.java View File

@@ -70,7 +70,7 @@ public abstract class BaseResourceCollectionWrapper
return;
}
if (rc != null) {
throwOneNested();
throw oneNested();
}
rc = c;
setChecked(false);
@@ -155,7 +155,7 @@ public abstract class BaseResourceCollectionWrapper
protected synchronized final ResourceCollection getResourceCollection() {
dieOnCircularReference();
if (rc == null) {
throwOneNested();
throw oneNested();
}
return rc;
}
@@ -194,8 +194,8 @@ public abstract class BaseResourceCollectionWrapper
return coll;
}

private void throwOneNested() throws BuildException {
throw new BuildException(super.toString() + ONE_NESTED_MESSAGE);
private BuildException oneNested() {
return new BuildException(super.toString() + ONE_NESTED_MESSAGE);
}

}

Loading…
Cancel
Save