- Move introduce and remove !! call to one class
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user