Skip to content

Commit 7e0c61d

Browse files
Jami CogswellJami Cogswell
authored andcommitted
switch to hasName
1 parent 9b4201f commit 7e0c61d

File tree

1 file changed

+1
-1
lines changed
  • java/ql/lib/semmle/code/java/frameworks/android

1 file changed

+1
-1
lines changed

java/ql/lib/semmle/code/java/frameworks/android/Intent.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class AndroidReceiveIntentMethod extends Method {
7070
*/
7171
class AndroidServiceIntentMethod extends Method {
7272
AndroidServiceIntentMethod() {
73-
this.getName().matches(["onStart%", "on%ind", "onTaskRemoved"]) and
73+
this.hasName(["onStart", "onStartCommand", "onBind", "onRebind", "onUnbind", "onTaskRemoved"]) and
7474
this.getDeclaringType() instanceof TypeService
7575
}
7676
}

0 commit comments

Comments
 (0)