Files
kotlin-fork/idea/resources/inspectionDescriptions/RedundantRequireNotNullCall.html
T
2019-02-06 11:10:27 +03:00

11 lines
244 B
HTML

<html>
<body>This inspection reports redundant <b>requireNotNull</b> or <b>checkNotNull</b> call:
<pre>
fun foo(i: Int) {
requireNotNull(i) // This 'i' is always not null, so this 'requireNotNull' call is redundant.
}
</pre>
</body>
</html>