Introduce "use expression body" inspection #KT-16063 Fixed
Converted from the relevant intention Reported cases: one-liners, whens Also, more exact caret detection in local inspection tests
This commit is contained in:
committed by
Mikhail Glukhikh
parent
fe9d3f16d3
commit
d08b18f5f8
@@ -1,5 +1,4 @@
|
||||
// "Suppress for declarations annotated by 'kotlin.Deprecated'" "false"
|
||||
// ACTION: Create test
|
||||
// ACTION: Convert to expression body
|
||||
@Deprecated("")
|
||||
fun foo<caret>(){}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// "Suppress for declarations annotated by 'org.jetbrains.annotations.NonNls'" "false"
|
||||
// ACTION: Safe delete 'foo'
|
||||
// ACTION: Create test
|
||||
// ACTION: Convert to expression body
|
||||
import org.jetbrains.annotations.NonNls
|
||||
|
||||
@NonNls
|
||||
|
||||
Reference in New Issue
Block a user