From 7b8f2409f896ed9c2fafa21d9774747b6914466b Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Fri, 6 Oct 2006 21:07:31 +0000 Subject: [PATCH] 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 --- .../types/resources/BaseResourceCollectionWrapper.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionWrapper.java b/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionWrapper.java index 5213f1279..51c20955f 100644 --- a/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionWrapper.java +++ b/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionWrapper.java @@ -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); } }