aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/apache/commons/lang3/exception
diff options
context:
space:
mode:
authorGary Gregory <garydgregory@gmail.com>2022-06-18 13:26:13 -0400
committerGary Gregory <garydgregory@gmail.com>2022-06-18 13:26:13 -0400
commitc6cfdc6149430e1d4c0f0cda03e7fb4d0e465802 (patch)
tree9d467a3f2ff61ea4b94a8cef3dab3a4a8d649302 /src/test/java/org/apache/commons/lang3/exception
parent70b2250f80ac098e3fbb136bcd765ad90e8d3c0e (diff)
downloadapache-commons-lang-c6cfdc6149430e1d4c0f0cda03e7fb4d0e465802.tar.gz
Format tweaks
Diffstat (limited to 'src/test/java/org/apache/commons/lang3/exception')
-rw-r--r--src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java b/src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java
index 27a2495b1..47ff55750 100644
--- a/src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java
@@ -77,6 +77,7 @@ public class ExceptionUtilsTest {
this.cause = cause;
}
}
+
/**
* Provides a method with a well known chained/nested exception
* name which does not match the full signature (e.g. lacks a
@@ -90,6 +91,7 @@ public class ExceptionUtilsTest {
// noop
}
}
+
// Temporary classes to allow the nested exception code to be removed
// prior to a rewrite of this test class.
private static class NestableException extends Exception {
@@ -103,12 +105,15 @@ public class ExceptionUtilsTest {
super(t);
}
}
+
public static class TestThrowable extends Throwable {
private static final long serialVersionUID = 1L;
}
+
private static int redeclareCheckedException() {
return throwsCheckedException();
}
+
private static int throwsCheckedException() {
try {
throw new IOException();
@@ -117,7 +122,6 @@ public class ExceptionUtilsTest {
}
}
-
private NestableException nested;
@@ -127,7 +131,6 @@ public class ExceptionUtilsTest {
private Throwable jdkNoCause;
-
private ExceptionWithCause cyclicCause;
private Throwable notVisibleException;