Skip to content

Commit

Permalink
Polish BlacklistedExceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Jul 22, 2016
1 parent 4ae881d commit 65e91b4
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@
import org.junit.platform.commons.meta.API;

/**
*
* <h3>DISCLAIMER</h3>
*
* <p>These utilities are intended solely for usage within the JUnit framework
* itself. <strong>Any usage by external parties is not supported.</strong>
* Use at your own risk!
*
* Internal utilities for working with <em>blacklisted</em> exceptions.
*
* <p><em>Blacklisted</em> exceptions are those that should always terminate
Expand All @@ -35,16 +28,24 @@
* <li>{@link OutOfMemoryError}</li>
* </ul>
*
* <h3>DISCLAIMER</h3>
*
* <p>These utilities are intended solely for usage within the JUnit framework
* itself. <strong>Any usage by external parties is not supported.</strong>
* Use at your own risk!
*
* @since 1.0
*/
@API(Internal)
public final class BlacklistedExceptions {

private static final List<Class<? extends Throwable>> blacklist = Collections.singletonList(OutOfMemoryError.class);

///CLOVER:OFF
private BlacklistedExceptions() {
/* no-op */
}
///CLOVER:ON

/**
* Rethrow the supplied {@link Throwable exception} if it is
Expand Down

0 comments on commit 65e91b4

Please sign in to comment.