mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
C#/Java: Update model generator expected test output.
This commit is contained in:
@@ -4,11 +4,13 @@ public class SyntheticCollections {
|
||||
private String[] array;
|
||||
|
||||
// summary=p;SyntheticCollections;true;SyntheticCollections;(String[]);;Argument[0].ArrayElement;Argument[this];taint;df-generated
|
||||
// contentbased-summary=p;SyntheticCollections;true;SyntheticCollections;(String[]);;Argument[0];Argument[this].SyntheticField[p.SyntheticCollections.array];value;df-generated
|
||||
public SyntheticCollections(String[] array) {
|
||||
this.array = array;
|
||||
}
|
||||
|
||||
// summary=p;SyntheticCollections;true;getElement;(Integer);;Argument[this];ReturnValue;taint;df-generated
|
||||
// contentbased-summary=p;SyntheticCollections;true;getElement;(Integer);;Argument[this].SyntheticField[p.SyntheticCollections.array].ArrayElement;ReturnValue;value;df-generated
|
||||
public String getElement(Integer index) {
|
||||
return array[index];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user