File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
java/ql/test/library-tests/frameworks/android/asynctask Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,13 @@ protected Object doInBackground(Object... params) {
3535 }
3636 }
3737
38- class TestConstructorTask extends AsyncTask <Object , Object , Object > {
38+ static class TestConstructorTask extends AsyncTask <Object , Object , Object > {
3939 private Object field ;
4040 private Object safeField ;
41+ private Object initField ;
42+ {
43+ initField = Test .source ("init" );
44+ }
4145
4246 public TestConstructorTask (Object field , Object safeField ) {
4347 this .field = field ;
@@ -49,6 +53,7 @@ protected Object doInBackground(Object... params) {
4953 sink (params [0 ]); // $ hasTaintFlow=params
5054 sink (field ); // $ hasValueFlow=constructor
5155 sink (safeField ); // Safe
56+ sink (initField ); // $ hasValueFlow=init
5257 return params [0 ];
5358 }
5459
@@ -57,6 +62,7 @@ protected void onPostExecute(Object param) {
5762 sink (param ); // $ hasTaintFlow=params
5863 sink (field ); // $ hasValueFlow=constructor
5964 sink (safeField ); // Safe
65+ sink (initField ); // $ hasValueFlow=init
6066 }
6167
6268 }
You can’t perform that action at this time.
0 commit comments