From 64dc75ad4c87d1eac1e44acaa06e0d3dc5120c4e Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Mon, 23 Apr 2018 06:51:08 +0200 Subject: [PATCH] there's been a reason tearDown threw Exception --- src/tests/junit/org/apache/tools/ant/BuildFileTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tests/junit/org/apache/tools/ant/BuildFileTest.java b/src/tests/junit/org/apache/tools/ant/BuildFileTest.java index ddc15044b..212210743 100644 --- a/src/tests/junit/org/apache/tools/ant/BuildFileTest.java +++ b/src/tests/junit/org/apache/tools/ant/BuildFileTest.java @@ -71,8 +71,12 @@ public abstract class BuildFileTest extends TestCase { * to clean up after each test. Note that no "setUp" target * is automatically called, since it's trivial to have a * test target depend on it. + * + * @throws Exception this implementation doesn't throw any + * exception but we've added it to the signature so that + * subclasses can throws whatever they need. */ - protected void tearDown() { + protected void tearDown() throws Exception { if (project == null) { /* * Maybe the BuildFileTest was subclassed and there is