Files
kotlin-fork/idea/testData/inspectionsLocal/logging/loggerInitializedWithForeignClass/commons/simple.kt
T
2020-05-18 18:16:52 +03:00

15 lines
331 B
Kotlin
Vendored

// WITH_RUNTIME
// PROBLEM: Logger initialized with foreign class 'Bar::class'
// FIX: Replace with 'Foo::class'
package org.apache.commons.logging
class Foo {
private val logger = LogFactory.getLog(<caret>Bar::class.java)
}
class Bar
object LogFactory {
fun getLog(clazz: Class<*>) {}
fun getLog(name: String?) {}
}