Author: mbenson Date: Fri Oct 6 14:07:31 2006 New Revision: 453763 URL: http://svn.apache.org/viewvc?view=rev&rev=453763 Log: line up with some other exception throwing utility methods e.g. in DataType
Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionWrapper.java Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionWrapper.java URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionWrapper.java?view=diff&rev=453763&r1=453762&r2=453763 ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionWrapper.java (original) +++ ant/core/trunk/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionWrapper.java Fri Oct 6 14:07:31 2006 @@ -70,7 +70,7 @@ return; } if (rc != null) { - throwOneNested(); + throw oneNested(); } rc = c; setChecked(false); @@ -155,7 +155,7 @@ protected synchronized final ResourceCollection getResourceCollection() { dieOnCircularReference(); if (rc == null) { - throwOneNested(); + throw oneNested(); } return rc; } @@ -194,8 +194,8 @@ 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); } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]