Skip to content

Commit

Permalink
Fix javadoc and test
Browse files Browse the repository at this point in the history
  • Loading branch information
arturobernalg committed Mar 5, 2021
1 parent bc45e24 commit 511ef13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Expand Up @@ -591,12 +591,12 @@ public static int indexOfType(final Throwable throwable, final Class<? extends T
* that is, neither a RuntimeException nor an Error.
*
* <pre>
* ExceptionUtils.isCheckedException(new Exception()) = true
* ExceptionUtils.isCheckedException(new SQLException()) = true
* ExceptionUtils.isCheckedException(new RuntimeException()) = false
* ExceptionUtils.isCheckedException(new IllegalArgumentException("")) = false
* ExceptionUtils.isCheckedException(new Throwable()) = true
* ExceptionUtils.isCheckedException(null) = false
* ExceptionUtils.isChecked(new Exception()) = true
* ExceptionUtils.isChecked(new SQLException()) = true
* ExceptionUtils.isChecked(new RuntimeException()) = false
* ExceptionUtils.isChecked(new IllegalArgumentException("")) = false
* ExceptionUtils.isChecked(new Throwable()) = true
* ExceptionUtils.isChecked(null) = false
* </pre>
*
* @param throwable the throwable to check
Expand Down
Expand Up @@ -502,7 +502,7 @@ public void testIndexOfType_ThrowableClassInt() {
}

@Test
void isCheckedException() {
void isChecked() {
final Exception ex = null;
assertTrue(ExceptionUtils.isChecked(new Exception()));
assertTrue(ExceptionUtils.isChecked(new SQLException()));
Expand Down

0 comments on commit 511ef13

Please sign in to comment.