Skip to content

Commit

Permalink
Revert "ExternalResource: declare after() to throw Throwable (junit-t…
Browse files Browse the repository at this point in the history
…eam#1421)"

Revert commit cebbf5e.
It breaks code that extends ExternalResource,
overrides after() and calls super.after() in after().
  • Loading branch information
panchenko authored and marcphilipp committed Apr 4, 2019
1 parent 552bb39 commit 8a367c1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/org/junit/rules/ExternalResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 8a367c1

Please sign in to comment.