Inspection/Intention replace size check with 'isNotEmpty' and 'isEmpty' #KT-13937 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
5fa561eb70
commit
32b7b5a092
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This inspection detects size checks of Collections/Array/String that should be replaced with 'isNotEmpty()'
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This inspection detects size zero checks of Collections/Array/String that should be replaced with 'isEmpty()'
|
||||
</body>
|
||||
</html>
|
||||
+1
@@ -0,0 +1 @@
|
||||
<spot>list.isNotEmpty()</spot>
|
||||
+1
@@ -0,0 +1 @@
|
||||
<spot>list.size > 0</spot>
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention replaces size check with 'isNotEmpty()'
|
||||
</body>
|
||||
</html>
|
||||
+1
@@ -0,0 +1 @@
|
||||
<spot>list.isEmpty()</spot>
|
||||
+1
@@ -0,0 +1 @@
|
||||
<spot>list.size == 0</spot>
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention replaces size 0 check with 'isEmpty()'
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user