@@ -12,17 +12,29 @@ static void sink(Object sink) {}
12
12
13
13
public void test (Context ctx , Activity act ) {
14
14
15
- // test methods that start an activity
15
+ // test all methods that start an activity
16
16
{
17
17
Intent intent = new Intent (null , SomeActivity .class );
18
18
intent .putExtra ("data" , (String ) source ("ctx-start" ));
19
19
ctx .startActivity (intent );
20
20
}
21
+ {
22
+ Intent intent = new Intent (null , SomeActivity .class );
23
+ intent .putExtra ("data" , (String ) source ("ctx-start-acts" ));
24
+ Intent [] intents = new Intent [] {intent };
25
+ ctx .startActivities (intents );
26
+ }
21
27
{
22
28
Intent intent = new Intent (null , SomeActivity .class );
23
29
intent .putExtra ("data" , (String ) source ("act-start" ));
24
30
act .startActivity (intent );
25
31
}
32
+ {
33
+ Intent intent = new Intent (null , SomeActivity .class );
34
+ intent .putExtra ("data" , (String ) source ("act-start-acts" ));
35
+ Intent [] intents = new Intent [] {intent };
36
+ act .startActivities (intents );
37
+ }
26
38
{
27
39
Intent intent = new Intent (null , SomeActivity .class );
28
40
intent .putExtra ("data" , (String ) source ("start-for-result" ));
@@ -67,7 +79,7 @@ public void test(Context ctx, Activity act) {
67
79
static class SomeActivity extends Activity {
68
80
69
81
public void test () {
70
- sink (getIntent ().getStringExtra ("data" )); // $ hasValueFlow=ctx-start hasValueFlow=act-start hasValueFlow=start-for-result hasValueFlow=start-if-needed hasValueFlow=start-matching hasValueFlow=start-from-child hasValueFlow=start-from-frag hasValueFlow=4-arg
82
+ sink (getIntent ().getStringExtra ("data" )); // $ hasValueFlow=ctx-start hasValueFlow=act-start hasValueFlow=start-for-result hasValueFlow=start-if-needed hasValueFlow=start-matching hasValueFlow=start-from-child hasValueFlow=start-from-frag hasValueFlow=4-arg MISSING: hasValueFlow=ctx-start-acts hasValueFlow=act-start-acts
71
83
}
72
84
73
85
}
0 commit comments