Introduce "Useless call on not-null type" inspection #KT-18386 Fixed

Supported functions: orEmpty(), isNullOrEmpty(), isNullOrBlank()
This commit is contained in:
Mikhail Glukhikh
2017-06-16 17:14:59 +03:00
parent 8c21ff66a4
commit 0f4ae3b727
21 changed files with 322 additions and 0 deletions
@@ -0,0 +1,8 @@
<html>
<body>
This inspection reports calls on not-null receiver that make sense only for nullable receiver, e.g.
<pre><code>
listOf(1).orEmpty()
</code></pre>
</body>
</html>