Skip to content

Commit 8a367c1

Browse files
panchenkomarcphilipp
authored andcommitted
Revert "ExternalResource: declare after() to throw Throwable (#1421)"
Revert commit cebbf5e. It breaks code that extends ExternalResource, overrides after() and calls super.after() in after().
1 parent 552bb39 commit 8a367c1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/org/junit/rules/ExternalResource.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,8 @@ protected void before() throws Throwable {
7777

7878
/**
7979
* Override to tear down your specific external resource.
80-
*
81-
* @throws Throwable if teardown fails
8280
*/
83-
protected void after() throws Throwable {
81+
protected void after() {
8482
// do nothing
8583
}
8684
}

0 commit comments

Comments
 (0)