mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
#IDEA-354810 Fixed (cherry picked from commit d29d3256472dfe368161335732ded20ae95cf34e) IJ-MR-140910 GitOrigin-RevId: 0a9b3cae7aab473f732012ad91b4e67f97ff8697
11 lines
400 B
Kotlin
11 lines
400 B
Kotlin
import org.checkerframework.checker.tainting.qual.Untainted
|
|
|
|
class MethodAsFieldTest {
|
|
|
|
fun test(clean: @Untainted MethodAsFields, unclean: MethodAsFields) {
|
|
sink(clean.t)
|
|
sink(<warning descr="Unknown string is used as safe parameter">unclean.t</warning>) //warn
|
|
}
|
|
|
|
fun sink(<warning descr="[UNUSED_PARAMETER] Parameter 'string' is never used">string</warning>: @Untainted String?) {}
|
|
} |