Skip to content

Commit 9663e70

Browse files
committed
fix(sdk): annotate kotlin constructor for java compatibility
One constructor only called the other one with "null" as one value. Having this value default to null in kotlin broke the compatibility, though. Thus, this fixes it as far as I see it
1 parent 0889bfe commit 9663e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

socha-sdk/src/framework/sc/shared/InvalidMoveException.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ import kotlin.RuntimeException
55

66
/** NOTE: It is important to have information about the move in the reason
77
* because that is the only place where the invalid move is logged */
8-
class InvalidMoveException(reason: String, @JvmField val move: IMove? = null):
8+
class InvalidMoveException @JvmOverloads constructor(reason: String, @JvmField val move: IMove? = null):
99
RuntimeException(reason + (if (move != null) "; move was $move" else ""))

0 commit comments

Comments
 (0)