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