From c6cfdc6149430e1d4c0f0cda03e7fb4d0e465802 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sat, 18 Jun 2022 13:26:13 -0400 Subject: Format tweaks --- .../org/apache/commons/lang3/exception/ExceptionUtilsTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/test/java/org/apache/commons/lang3/exception') 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; -- cgit v1.2.3