mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 01:38:54 +07:00
27 lines
457 B
Java
27 lines
457 B
Java
import org.checkerframework.checker.tainting.qual.*;
|
|
|
|
class Simple {
|
|
|
|
void test() {
|
|
String s = callAnother();
|
|
sink(<caret>s);
|
|
}
|
|
|
|
String callAnother() {
|
|
Another another = new Another();
|
|
return ((another.foo()) + (another.foo()));
|
|
}
|
|
|
|
static String bar(x) {
|
|
return x;
|
|
}
|
|
|
|
void sink(@Untainted String s) {}
|
|
}
|
|
|
|
class Another {
|
|
String x;
|
|
String foo() {
|
|
return Simple.bar(x);
|
|
}
|
|
} |