- Move introduce and remove !! call to one class
This commit is contained in:
Nikolay Krasko
2012-07-02 20:40:34 +04:00
parent d879827371
commit 83d0e8ebb5
13 changed files with 203 additions and 167 deletions
@@ -1,4 +1,4 @@
// "Replace with dot call" "true"
// "Remove unnecessary non-null assertion (!!)" "true"
fun test(value : String) {
value<caret>.equals("test")
}
@@ -1,4 +1,4 @@
// "Remove unnecessary non-null assertion (!!)" "false"
// "Remove unnecessary non-null assertion (!!)" "true"
fun test(value : String) : Int {
return value<caret>!!.length()
return value<caret>.length
}
@@ -1,4 +1,4 @@
// "Replace with non-null asserted (!!.) call" "true"
// "Add non-null asserted (!!) call" "true"
fun foo(a: Int?) {
a!!.plus(1)
}
@@ -0,0 +1,4 @@
// "Add non-null asserted (!!) call" "true"
fun foo(a: Int?) {
a!!.plus(1)
}
@@ -1,4 +1,4 @@
// "Replace with dot call" "true"
// "Remove unnecessary non-null assertion (!!)" "true"
fun test(value : String) {
value!!<caret>.equals("test")
}
@@ -1,4 +1,4 @@
// "Remove unnecessary non-null assertion (!!)" "false"
// "Remove unnecessary non-null assertion (!!)" "true"
fun test(value : String) : Int {
return value<caret>!!.length()
return value<caret>!!.length
}
@@ -1,4 +1,4 @@
// "Replace with non-null asserted (!!.) call" "true"
// "Add non-null asserted (!!) call" "true"
fun foo(a: Int?) {
a<caret>.plus(1)
}
@@ -0,0 +1,4 @@
// "Add non-null asserted (!!) call" "true"
fun foo(a: Int?) {
a.<caret>plus(1)
}