|
|
|
@ -1005,6 +1005,10 @@ let get_reporting_explanation_java report_kind tenv pname thread =
|
|
|
|
|
"@\n Reporting because current method is annotated %a or overrides an annotated method."
|
|
|
|
|
MF.pp_monospaced "@ThreadSafe")
|
|
|
|
|
else
|
|
|
|
|
match FbThreadSafety.get_fbthreadsafe_class_annot pname tenv with
|
|
|
|
|
| Some (qual, annot) ->
|
|
|
|
|
Some (FbThreadSafety.message_fbthreadsafe_class qual annot)
|
|
|
|
|
| None ->
|
|
|
|
|
match get_current_class_and_threadsafe_superclasses tenv pname with
|
|
|
|
|
| Some (current_class, (thread_safe_class :: _ as thread_safe_annotated_classes)) ->
|
|
|
|
|
Some
|
|
|
|
@ -1013,7 +1017,8 @@ let get_reporting_explanation_java report_kind tenv pname thread =
|
|
|
|
|
MF.pp_monospaced "@ThreadSafe"
|
|
|
|
|
else
|
|
|
|
|
F.asprintf "@\n Reporting because a superclass %a is annotated %a"
|
|
|
|
|
(MF.wrap_monospaced Typ.Name.pp) thread_safe_class MF.pp_monospaced "@ThreadSafe" )
|
|
|
|
|
(MF.wrap_monospaced Typ.Name.pp) thread_safe_class MF.pp_monospaced "@ThreadSafe"
|
|
|
|
|
)
|
|
|
|
|
| _ ->
|
|
|
|
|
None
|
|
|
|
|
in
|
|
|
|
@ -1714,4 +1719,3 @@ let file_analysis {Callbacks.procedures} =
|
|
|
|
|
else (module MayAliasQuotientedAccessListMap) )
|
|
|
|
|
class_env))
|
|
|
|
|
(aggregate_by_class procedures)
|
|
|
|
|
|
|
|
|
|