Refactoring: make "if-then to safe access" an inspection
This commit is contained in:
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
class F(a: Int?) {
|
||||
val b = a
|
||||
val c = b?.toString()
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
F(1).c
|
||||
}
|
||||
Reference in New Issue
Block a user