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