[purity] Don't report on access methods

Reviewed By: mbouaziz

Differential Revision: D10052479

fbshipit-source-id: a05c4d5cb
master
Ezgi Çiçek 6 years ago committed by Facebook Github Bot
parent 86d1560984
commit d4f943e953

@ -68,7 +68,8 @@ let should_report pure pdesc =
| Typ.Procname.Java java_pname as proc_name ->
pure
&& (not (Typ.Procname.is_constructor proc_name))
&& not (Typ.Procname.Java.is_class_initializer java_pname)
&& (not (Typ.Procname.Java.is_class_initializer java_pname))
&& not (Typ.Procname.Java.is_access_method java_pname)
| _ ->
L.(die InternalError "Not supposed to run on non-Java code.")

Loading…
Cancel
Save