mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
17 lines
236 B
Java
17 lines
236 B
Java
import org.checkerframework.checker.tainting.qual.*;
|
|
|
|
class Simple {
|
|
|
|
String field = "safe";
|
|
|
|
void test() {
|
|
String s = foo();
|
|
sink(<caret>s);
|
|
}
|
|
|
|
String foo() {
|
|
return field;
|
|
}
|
|
|
|
void sink(@Untainted String s) {}
|
|
} |