File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
java/ql/lib/semmle/code/java/frameworks/android Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,18 @@ class AndroidServiceIntentMethod extends Method {
86
86
}
87
87
}
88
88
89
+ /**
90
+ * The method `Context.startActivity` or `startActivities`.
91
+ *
92
+ * DEPRECATED: Use `StartActivityMethod` instead.
93
+ */
94
+ deprecated class ContextStartActivityMethod extends Method {
95
+ ContextStartActivityMethod ( ) {
96
+ ( this .hasName ( "startActivity" ) or this .hasName ( "startActivities" ) ) and
97
+ this .getDeclaringType ( ) instanceof TypeContext
98
+ }
99
+ }
100
+
89
101
/**
90
102
* The method `Context.startActivity`, `Context.startActivities`,
91
103
* `Activity.startActivity`,`Activity.startActivities`,
@@ -237,16 +249,6 @@ class GrantWriteUriPermissionFlag extends GrantUriPermissionFlag {
237
249
GrantWriteUriPermissionFlag ( ) { this .hasName ( "FLAG_GRANT_WRITE_URI_PERMISSION" ) }
238
250
}
239
251
240
- /*
241
- * // ! TODO: create a parent class for the below three steps?
242
- * // ! e.g. something like the below?
243
- * // ! could put `getClassArgOfIntentConstructor` in parent class?
244
- *
245
- * // ! Also look into whether it's possible to reduce any code duplication
246
- * // ! across the three steps in general.
247
- * // class StartComponentIntentStep extends AdditionalValueStep { }
248
- */
249
-
250
252
/**
251
253
* Gets the `Class<?>` argument of an `android.content.Intent`constructor.
252
254
*
You can’t perform that action at this time.
0 commit comments