mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
17 lines
257 B
Java
17 lines
257 B
Java
import org.checkerframework.checker.tainting.qual.*;
|
|
|
|
class Simple {
|
|
|
|
@Tainted String field = "unsafe";
|
|
|
|
void callTest() {
|
|
String s = field;
|
|
test(s);
|
|
}
|
|
|
|
void test(@Untainted String s) {
|
|
sink(s);
|
|
}
|
|
|
|
void sink(@Untainted String s) {}
|
|
} |