mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
36 lines
548 B
Java
36 lines
548 B
Java
package my.qltest;
|
|
|
|
public class B {
|
|
void foo() {
|
|
Object arg1 = new Object();
|
|
sink1(arg1);
|
|
|
|
Object argToTagged = new Object();
|
|
taggedSinkMethod(argToTagged);
|
|
|
|
Object fieldWrite = new Object();
|
|
taggedField = fieldWrite;
|
|
}
|
|
|
|
Object sinkMethod() {
|
|
Object res = new Object();
|
|
return res;
|
|
}
|
|
|
|
@Tag
|
|
Object taggedSinkMethod() {
|
|
Object resTag = new Object();
|
|
return resTag;
|
|
}
|
|
|
|
void sink1(Object x) { }
|
|
|
|
@interface Tag { }
|
|
|
|
@Tag
|
|
void taggedSinkMethod(Object x) { }
|
|
|
|
@Tag
|
|
Object taggedField;
|
|
}
|