Skip to content

Commit 65e91b4

Browse files
committed
Polish BlacklistedExceptions
1 parent 4ae881d commit 65e91b4

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

junit-platform-commons/src/main/java/org/junit/platform/commons/util/BlacklistedExceptions.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@
1818
import org.junit.platform.commons.meta.API;
1919

2020
/**
21-
*
22-
* <h3>DISCLAIMER</h3>
23-
*
24-
* <p>These utilities are intended solely for usage within the JUnit framework
25-
* itself. <strong>Any usage by external parties is not supported.</strong>
26-
* Use at your own risk!
27-
*
2821
* Internal utilities for working with <em>blacklisted</em> exceptions.
2922
*
3023
* <p><em>Blacklisted</em> exceptions are those that should always terminate
@@ -35,16 +28,24 @@
3528
* <li>{@link OutOfMemoryError}</li>
3629
* </ul>
3730
*
31+
* <h3>DISCLAIMER</h3>
32+
*
33+
* <p>These utilities are intended solely for usage within the JUnit framework
34+
* itself. <strong>Any usage by external parties is not supported.</strong>
35+
* Use at your own risk!
36+
*
3837
* @since 1.0
3938
*/
4039
@API(Internal)
4140
public final class BlacklistedExceptions {
4241

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

44+
///CLOVER:OFF
4545
private BlacklistedExceptions() {
4646
/* no-op */
4747
}
48+
///CLOVER:ON
4849

4950
/**
5051
* Rethrow the supplied {@link Throwable exception} if it is

0 commit comments

Comments
 (0)