Files
Mikhail Pyltsin 8579ca0616 [java-inspections] IDEA-318681, IDEA-318678, IDEA-318677, IDEA-318676 Improve tainted analysis
GitOrigin-RevId: 93ef8d87e4dadd2b5cbfcc16b91610503df95664
2023-05-05 16:37:48 +00:00

19 lines
260 B
Java

import org.checkerframework.checker.tainting.qual.*;
class Simple {
void callTest() {
String s = foo();
test(s);
}
String foo() {
return "safe";
}
void test(String s) {
sink(<caret>s);
}
void sink(@Untainted String s) {}
}