Skip to content

Commit c2679e1

Browse files
Update RaiseAssert.kt
1 parent 5416349 commit c2679e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/kotlin/in/rcard/assertj/arrowcore/RaiseAssert.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ import kotlin.experimental.ExperimentalTypeInference
2222
*
2323
* @since 0.2.0
2424
*/
25-
class RaiseAssert<ERROR : Any, VALUE : Any>(
25+
class RaiseAssert<ERROR : Any?, VALUE : Any?>(
2626
raiseResult: RaiseResult<ERROR, VALUE>,
2727
) : AbstractRaiseAssert<RaiseAssert<ERROR, VALUE>, ERROR, VALUE>(raiseResult) {
2828
companion object {
29-
inline fun <ERROR : Any, VALUE : Any> assertThat(
29+
inline fun <ERROR : Any?, VALUE : Any?> assertThat(
3030
@BuilderInference lambda: Raise<ERROR>.() -> VALUE,
3131
): RaiseAssert<ERROR, VALUE> {
3232
val raiseResult =
@@ -54,7 +54,7 @@ class RaiseAssert<ERROR : Any, VALUE : Any>(
5454
* @param shouldRaiseThrowable the function to be executed in the [Raise] context.
5555
* @return the [AbstractThrowableAssert] to be used to verify the exception.
5656
*/
57-
inline fun <ERROR : Any, VALUE : Any> assertThatThrownBy(
57+
inline fun <ERROR : Any?, VALUE : Any?> assertThatThrownBy(
5858
@BuilderInference shouldRaiseThrowable: Raise<ERROR>.() -> VALUE,
5959
): AbstractThrowableAssert<*, out Throwable> {
6060
val throwable: Throwable? =
@@ -81,7 +81,7 @@ class RaiseAssert<ERROR : Any, VALUE : Any>(
8181
* @param shouldRaiseError the function to be executed in the [Raise] context.
8282
* @return the [AbstractObjectAssert] to be used to verify the error.
8383
*/
84-
inline fun <ERROR : Any, VALUE : Any> assertThatRaisedBy(
84+
inline fun <ERROR : Any?, VALUE : Any?> assertThatRaisedBy(
8585
@BuilderInference shouldRaiseError: Raise<ERROR>.() -> VALUE,
8686
): AbstractObjectAssert<*, out ERROR> {
8787
val error =

0 commit comments

Comments
 (0)