Inspection/Intention replace size check with 'isNotEmpty' and 'isEmpty' #KT-13937 Fixed

This commit is contained in:
shiraji
2016-10-01 17:34:35 +09:00
committed by Mikhail Glukhikh
parent 5fa561eb70
commit 32b7b5a092
64 changed files with 699 additions and 0 deletions
@@ -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>
@@ -0,0 +1 @@
<spot>list.isNotEmpty()</spot>
@@ -0,0 +1 @@
<spot>list.size > 0</spot>
@@ -0,0 +1,5 @@
<html>
<body>
This intention replaces size check with 'isNotEmpty()'
</body>
</html>
@@ -0,0 +1 @@
<spot>list.isEmpty()</spot>
@@ -0,0 +1 @@
<spot>list.size == 0</spot>
@@ -0,0 +1,5 @@
<html>
<body>
This intention replaces size 0 check with 'isEmpty()'
</body>
</html>