Files
kotlin-fork/idea/resources/inspectionDescriptions/ReplaceGuardClauseWithFunctionCall.html
T
Toshiaki Kameyama 90b0ea73dc Add inspection for check/require/checkNotNull/requireNotNull
#KT-30640 Fixed
#KT-22412 Fixed
2019-07-08 16:36:18 +03:00

11 lines
290 B
HTML

<html>
<body>
This inspection reports guard clause that can be replaced with kotlin's function call. For example:
<br /><br />
<pre>
fun test(foo: Int?) {
if (foo == null) throw IllegalArgumentException("foo") // Replace guard clause with kotlin's function call
}
</pre>
</body>
</html>