Don't wrap between throw and exception type
This commit is contained in:
parent
3994723c3c
commit
bcb6fd4a4d
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ internal class AdapterGenerator(
|
||||||
.addParameter(valueParam)
|
.addParameter(valueParam)
|
||||||
|
|
||||||
result.beginControlFlow("if (%N == null)", valueParam)
|
result.beginControlFlow("if (%N == null)", valueParam)
|
||||||
result.addStatement("throw %T(%S)", NullPointerException::class,
|
result.addStatement("throw·%T(%S)", NullPointerException::class,
|
||||||
"${valueParam.name} was null! Wrap in .nullSafe() to write nullable values.")
|
"${valueParam.name} was null! Wrap in .nullSafe() to write nullable values.")
|
||||||
result.endControlFlow()
|
result.endControlFlow()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue