mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 13:20:56 +07:00
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?) {}
|
|
} |