Refactoring: "introduce when subject" is now an inspection

This commit is contained in:
Mikhail Glukhikh
2017-12-19 16:58:04 +03:00
parent a8b01a6b00
commit 6d4b5bc48f
29 changed files with 136 additions and 151 deletions
@@ -1,11 +0,0 @@
when (n) {
1 -> {
res = "one"
}
2 -> {
res = "two"
}
else -> {
res = "???"
}
}
@@ -1,11 +0,0 @@
when {
n == 1 -> {
res = "one"
}
n == 2 -> {
res = "two"
}
else -> {
res = "???"
}
}
@@ -1,5 +0,0 @@
<html>
<body>
This intention introduces argument into 'when' expression simplifying conditions of its branches
</body>
</html>