ReplaceGuardClause inspection: don't report when argument is not String
This commit is contained in:
committed by
Mikhail Glukhikh
parent
90b0ea73dc
commit
8cbcb66197
+8
@@ -0,0 +1,8 @@
|
||||
// PROBLEM: none
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
try {
|
||||
} catch (e: Exception) {
|
||||
<caret>if (e is RuntimeException) throw IllegalStateException(e)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user