Introduce "Logger initialized with foreign class" inspection

^KT-38982 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-05-16 11:48:19 +09:00
committed by Nikita Bobko
parent c6e23ffa3b
commit 23c4eac45b
35 changed files with 707 additions and 1 deletions
@@ -0,0 +1,10 @@
// RUNTIME_WITH_FULL_JDK
package util
import java.util.logging.Logger
class Foo {
private val logger = Logger.getLogger(<caret>Bar::class.qualifiedName)
}
class Bar
@@ -0,0 +1,10 @@
// RUNTIME_WITH_FULL_JDK
package util
import java.util.logging.Logger
class Foo {
private val logger = Logger.getLogger(Foo::class.qualifiedName)
}
class Bar
@@ -0,0 +1,10 @@
// RUNTIME_WITH_FULL_JDK
package util
import java.util.logging.Logger.getLogger
class Foo {
private val logger = getLogger(<caret>Bar::class.qualifiedName)
}
class Bar
@@ -0,0 +1,10 @@
// RUNTIME_WITH_FULL_JDK
package util
import java.util.logging.Logger.getLogger
class Foo {
private val logger = getLogger(Foo::class.qualifiedName)
}
class Bar