Add missing serialVersionUID declarations in tests
This commit is contained in:
parent
6ebaad61fe
commit
803aa24db0
|
@ -388,6 +388,8 @@ public class AnnotationUtilsTest {
|
||||||
long timeout() default 0L;
|
long timeout() default 0L;
|
||||||
|
|
||||||
class None extends Throwable {
|
class None extends Throwable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,8 @@ package org.apache.commons.lang3.exception;
|
||||||
|
|
||||||
public class CustomCheckedException extends Exception {
|
public class CustomCheckedException extends Exception {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
public CustomCheckedException() {
|
public CustomCheckedException() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,8 @@ package org.apache.commons.lang3.exception;
|
||||||
|
|
||||||
public class CustomUncheckedException extends RuntimeException {
|
public class CustomUncheckedException extends RuntimeException {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
public CustomUncheckedException() {
|
public CustomUncheckedException() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -702,6 +702,8 @@ public class ExceptionUtilsTest {
|
||||||
@DisplayName("getStackFrames returns empty string array when the argument is null")
|
@DisplayName("getStackFrames returns empty string array when the argument is null")
|
||||||
public void testgetStackFramesHappyPath() {
|
public void testgetStackFramesHappyPath() {
|
||||||
final String[] actual = ExceptionUtils.getStackFrames(new Throwable() {
|
final String[] actual = ExceptionUtils.getStackFrames(new Throwable() {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
// provide static stack trace to make test stable
|
// provide static stack trace to make test stable
|
||||||
@Override
|
@Override
|
||||||
public void printStackTrace(final PrintWriter s) {
|
public void printStackTrace(final PrintWriter s) {
|
||||||
|
|
Loading…
Reference in New Issue