diff --git a/infer/src/absint/PatternMatch.ml b/infer/src/absint/PatternMatch.ml index 6a6aabd67..5cb664687 100644 --- a/infer/src/absint/PatternMatch.ml +++ b/infer/src/absint/PatternMatch.ml @@ -233,9 +233,7 @@ let get_vararg_type_names tenv (call_node : Procdesc.Node.t) (ivar : Pvar.t) : s type_names [] call_node -let is_getter pname_java = - Str.string_match (Str.regexp "get*") (Typ.Procname.Java.get_method pname_java) 0 - +let is_getter pname_java = String.is_prefix ~prefix:"get" (Typ.Procname.Java.get_method pname_java) let type_is_class typ = match typ.Typ.desc with