Introduce "Logger initialized with foreign class" inspection
^KT-38982 Fixed
This commit is contained in:
committed by
Nikita Bobko
parent
c6e23ffa3b
commit
23c4eac45b
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
// WITH_RUNTIME
|
||||
package org.apache.commons.logging
|
||||
|
||||
class Foo {
|
||||
private val logger = LogFactory.getLog(<caret>Bar::class.java.getSimpleName())
|
||||
}
|
||||
|
||||
class Bar
|
||||
|
||||
object LogFactory {
|
||||
fun getLog(clazz: Class<*>) {}
|
||||
fun getLog(name: String?) {}
|
||||
}
|
||||
Reference in New Issue
Block a user