switch to hasName

This commit is contained in:
Jami Cogswell
2022-09-27 10:45:52 -04:00
parent 9b4201f880
commit 7e0c61de2c

View File

@@ -70,7 +70,7 @@ class AndroidReceiveIntentMethod extends Method {
*/
class AndroidServiceIntentMethod extends Method {
AndroidServiceIntentMethod() {
this.getName().matches(["onStart%", "on%ind", "onTaskRemoved"]) and
this.hasName(["onStart", "onStartCommand", "onBind", "onRebind", "onUnbind", "onTaskRemoved"]) and
this.getDeclaringType() instanceof TypeService
}
}