@@ -12,30 +12,17 @@ static void sink(Object sink) {}
12
12
13
13
public void test (Context ctx , Activity act ) {
14
14
15
- // test all methods that start an activity
15
+ // test 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 intent1 = new Intent(null, SomeActivity2.class);
23
- // intent1.putExtra("data", (String) source("ctx-starts"));
24
- // Intent intent2 = new Intent(null, SomeActivity3.class);
25
- // intent2.putExtra("data", (String) source("ctx-starts"));
26
- // Intent[] intents = {intent1, intent2};
27
- // ctx.startActivities(intents);
28
- }
29
21
{
30
22
Intent intent = new Intent (null , SomeActivity .class );
31
23
intent .putExtra ("data" , (String ) source ("act-start" ));
32
24
act .startActivity (intent );
33
25
}
34
- {
35
- // Intent[] intent = {new Intent(null, SomeActivity.class)};
36
- // intent[0].putExtra("data", (String) source("act-starts"));
37
- // act.startActivities(intent);
38
- }
39
26
{
40
27
Intent intent = new Intent (null , SomeActivity .class );
41
28
intent .putExtra ("data" , (String ) source ("start-for-result" ));
@@ -85,22 +72,6 @@ public void test() {
85
72
86
73
}
87
74
88
- // static class SomeActivity2 extends Activity {
89
-
90
- // public void test() {
91
- // sink(getIntent().getStringExtra("data")); // $ hasValueFlow=ctx-starts
92
- // }
93
-
94
- // }
95
-
96
- // static class SomeActivity3 extends Activity {
97
-
98
- // public void test() {
99
- // sink(getIntent().getStringExtra("data")); // $ hasValueFlow=ctx-starts
100
- // }
101
-
102
- // }
103
-
104
75
static class SafeActivity extends Activity {
105
76
106
77
public void test () {
0 commit comments