Convert 'simplify when' from intention to inspection

Related to KT-20492
This commit is contained in:
Mikhail Glukhikh
2017-11-09 16:30:34 +03:00
parent df86ff7115
commit 7b2a66c006
36 changed files with 150 additions and 133 deletions
@@ -0,0 +1,5 @@
<html>
<body>
This inspection detects 'when' with 'true' or 'false' branches that can be simplified.
</body>
</html>
@@ -1,5 +0,0 @@
val foo = when {
true -> "foo"
false -> "bar"
else -> "baz"
}
@@ -1,5 +0,0 @@
<html>
<body>
This intention simplifies a when expression that has branch conditions which are true or false
</body>
</html>