mirror of
https://github.com/github/codeql.git
synced 2026-05-04 21:25:44 +02:00
Support flow into field of referenced objects
This commit is contained in:
31
java/ql/test/utils/model-generator/p/InnerHolder.java
Normal file
31
java/ql/test/utils/model-generator/p/InnerHolder.java
Normal file
@@ -0,0 +1,31 @@
|
||||
package p;
|
||||
|
||||
public final class InnerHolder {
|
||||
|
||||
private class Context {
|
||||
private String value;
|
||||
|
||||
Context(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
private Context context = null;
|
||||
|
||||
public void setContext(String value) {
|
||||
context = new Context(value);
|
||||
}
|
||||
|
||||
public void explicitSetContext(String value) {
|
||||
this.context = new Context(value);
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return context.getValue();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user