Use unchecked exception. #1555
Fixes `CheckedExceptionClass` inspection violations in test code. Description: >Reports checked exception classes (i.e. subclasses of Exception which are not also subclasses of RuntimeException). Certain coding standards require that all user-defined exception classes be unchecked.
This commit is contained in:
parent
841746e9c3
commit
655a496c88
|
|
@ -253,7 +253,7 @@ public class XMLLoggerTest {
|
|||
assertEquals("last line.", "</checkstyle>", lines[lines.length - 1]);
|
||||
}
|
||||
|
||||
private static class TestException extends Exception {
|
||||
private static class TestException extends RuntimeException {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue