[nullsafe] Add "Fragment.onViewCreated()" to a list of known initializers

Summary:
Note that the current implementation lists classes and methods (not
<class:method> pairs.

This is bit clowny, but works for now (given the list of classes is small).

So I'll leave it out of the scope of this diff.

Reviewed By: ngorogiannis

Differential Revision: D23076671

fbshipit-source-id: 71c94ebd9
master
Mitya Lyubarskiy 4 years ago committed by Facebook GitHub Bot
parent 6d9a620aa1
commit 8d4e9bf26e

@ -186,7 +186,9 @@ module Java = struct
; "junit.framework.TestCase" ]
let initializer_methods = ["onActivityCreated"; "onAttach"; "onCreate"; "onCreateView"; "setUp"]
let initializer_methods =
["onActivityCreated"; "onAttach"; "onCreate"; "onCreateView"; "setUp"; "onViewCreated"]
(** Check if the type has in its supertypes from the initializer_classes list. *)
let type_has_initializer (tenv : Tenv.t) (t : Typ.t) : bool =

Loading…
Cancel
Save