mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
19 lines
268 B
Java
19 lines
268 B
Java
import org.checkerframework.checker.tainting.qual.*;
|
|
|
|
class Simple {
|
|
|
|
void test() {
|
|
String s = foo();
|
|
sink(<caret>s);
|
|
}
|
|
|
|
String foo() {
|
|
return source();
|
|
}
|
|
|
|
@Tainted String source() {
|
|
return "unsafe";
|
|
}
|
|
|
|
void sink(@Untainted String s) {}
|
|
} |