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