From 8a367c1b918f02135d333f3cea8b576c20287361 Mon Sep 17 00:00:00 2001 From: Alex Panchenko Date: Wed, 3 Apr 2019 17:20:00 +0200 Subject: [PATCH] Revert "ExternalResource: declare after() to throw Throwable (#1421)" Revert commit cebbf5e15725b4dc247ac0557f6fa63f475b15af. It breaks code that extends ExternalResource, overrides after() and calls super.after() in after(). --- src/main/java/org/junit/rules/ExternalResource.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/org/junit/rules/ExternalResource.java b/src/main/java/org/junit/rules/ExternalResource.java index c7c0102c9efa..71fc84294308 100644 --- a/src/main/java/org/junit/rules/ExternalResource.java +++ b/src/main/java/org/junit/rules/ExternalResource.java @@ -77,10 +77,8 @@ protected void before() throws Throwable { /** * Override to tear down your specific external resource. - * - * @throws Throwable if teardown fails */ - protected void after() throws Throwable { + protected void after() { // do nothing } }