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,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?) {}
}