Introduce "Useless call on not-null type" inspection #KT-18386 Fixed
Supported functions: orEmpty(), isNullOrEmpty(), isNullOrBlank()
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user