From 75cca6b3d30f13da4d7ad49a38a3f9dc9ac551cc Mon Sep 17 00:00:00 2001 From: Tony Cosentini Date: Mon, 1 Feb 2016 15:10:22 -0800 Subject: [PATCH] Add android.app.Service to whitelisted Android initializer classes. Summary: It has a similar lifecycle to activities and fragments, it would be nice to support `onCreate` as an initializer by default. Closes https://github.com/facebook/infer/pull/258 Reviewed By: jeremydubreil Differential Revision: D2887325 Pulled By: cristianoc fb-gh-sync-id: ed31df5 --- infer/src/checkers/patternMatch.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/infer/src/checkers/patternMatch.ml b/infer/src/checkers/patternMatch.ml index b8fcc5c36..7e44e5ebc 100644 --- a/infer/src/checkers/patternMatch.ml +++ b/infer/src/checkers/patternMatch.ml @@ -234,6 +234,7 @@ let initializer_classes = "android.app.Activity"; "android.app.Application"; "android.app.Fragment"; + "android.app.Service"; "android.support.v4.app.Fragment"; ]