Skip to content

Commit ceac01a

Browse files
committedMay 10, 2024·
Spotless
1 parent 0d7c474 commit ceac01a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
 

‎assertj-core/src/main/java/org/assertj/core/api/Assertions.java

+1
Original file line numberDiff line numberDiff line change
@@ -1477,6 +1477,7 @@ public static <THROWABLE extends Throwable> THROWABLE catchThrowableOfType(Class
14771477
ThrowingCallable shouldRaiseThrowable) {
14781478
return ThrowableAssert.catchThrowableOfType(type, shouldRaiseThrowable);
14791479
}
1480+
14801481
/**
14811482
* Allows catching an instance of {@link Exception}.
14821483
* <p>

‎assertj-core/src/main/java/org/assertj/core/api/AssertionsForClassTypes.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ public static <T extends Throwable> ThrowableTypeAssert<T> assertThatExceptionOf
822822
* <pre><code class='java'>assertThatNoException().isThrownBy(() -&gt; { System.out.println("OK"); });</code></pre>
823823
*
824824
* This method is more or less the same of {@code assertThatCode(...).doesNotThrowAnyException();} but in a more natural way.
825-
825+
*
826826
* @return the created {@link NotThrownAssert}.
827827
* @since 3.17.0
828828
*/

‎assertj-core/src/main/java/org/assertj/core/api/ThrowableAssert.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static <THROWABLE extends Throwable> THROWABLE catchThrowableOfType(Class
8080
if (throwable == null) return null;
8181
// check exception type
8282
new ThrowableAssert<>(throwable).overridingErrorMessage(shouldBeInstance(throwable, type).create())
83-
.isInstanceOf(type);
83+
.isInstanceOf(type);
8484
return (THROWABLE) throwable;
8585
}
8686

0 commit comments

Comments
 (0)
Please sign in to comment.