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