aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/apache/commons/lang3/exception
diff options
context:
space:
mode:
authorGary Gregory <garydgregory@gmail.com>2023-10-10 21:22:24 -0400
committerGary Gregory <garydgregory@gmail.com>2023-10-10 21:22:24 -0400
commit30dc88fd7725531049a9d8498c16492bcff40349 (patch)
tree01e150ba71e209511314480db8a9cac48bb2c0a5 /src/test/java/org/apache/commons/lang3/exception
parente0eb99198c03d534fca3d5258b87de63a3483239 (diff)
downloadapache-commons-lang-30dc88fd7725531049a9d8498c16492bcff40349.tar.gz
Make private static classes final
Diffstat (limited to 'src/test/java/org/apache/commons/lang3/exception')
-rw-r--r--src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java6
1 files changed, 3 insertions, 3 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 c103345ff..4845df492 100644
--- a/src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java
@@ -55,7 +55,7 @@ public class ExceptionUtilsTest extends AbstractLangTest {
* name which matches the full signature (e.g. has a return value
* of {@code Throwable}).
*/
- private static class ExceptionWithCause extends Exception {
+ private static final class ExceptionWithCause extends Exception {
private static final long serialVersionUID = 1L;
private Throwable cause;
@@ -84,7 +84,7 @@ public class ExceptionUtilsTest extends AbstractLangTest {
* name which does not match the full signature (e.g. lacks a
* return value of {@code Throwable}).
*/
- private static class ExceptionWithoutCause extends Exception {
+ private static final class ExceptionWithoutCause extends Exception {
private static final long serialVersionUID = 1L;
@SuppressWarnings("unused")
@@ -95,7 +95,7 @@ public class ExceptionUtilsTest extends AbstractLangTest {
// 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 {
+ private static final class NestableException extends Exception {
private static final long serialVersionUID = 1L;
@SuppressWarnings("unused")