mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
C#/Java: Update model generator expected test output.
This commit is contained in:
@@ -844,12 +844,14 @@ public class SyntheticCollections
|
||||
private object[] array;
|
||||
|
||||
// summary=Models;SyntheticCollections;false;SyntheticCollections;(System.Object[]);;Argument[0].Element;Argument[this];taint;df-generated
|
||||
// contentbased-summary=Models;SyntheticCollections;false;SyntheticCollections;(System.Object[]);;Argument[0];Argument[this].SyntheticField[Models.SyntheticCollections.array];value;df-generated
|
||||
public SyntheticCollections(object[] array)
|
||||
{
|
||||
this.array = array;
|
||||
}
|
||||
|
||||
// summary=Models;SyntheticCollections;false;GetElement;(System.Int32);;Argument[this];ReturnValue;taint;df-generated
|
||||
// contentbased-summary=Models;SyntheticCollections;false;GetElement;(System.Int32);;Argument[this].SyntheticField[Models.SyntheticCollections.array].Element;ReturnValue;value;df-generated
|
||||
public object GetElement(int index)
|
||||
{
|
||||
return array[index];
|
||||
|
||||
@@ -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