fix docstrings because MethodAnalysis xref_to functions handle a MethodAnalysis object, not an EncodedMethod or ExternalMethod

This commit is contained in:
ehrenb 2023-12-31 17:05:47 -05:00
parent 722ce173d8
commit ce9861ca4e

View File

@ -511,7 +511,7 @@ class MethodAnalysis:
(this method calls another method)
:param classobj: :class:`~ClassAnalysis`
:param methodobj: :class:`~androguard.core.bytecodes.dvm.EncodedMethod`
:param methodobj: :class:`~MethodAnalysis`
:param offset: integer where in the method the call happens
"""
self.xrefto.add((classobj, methodobj, offset))
@ -546,8 +546,8 @@ class MethodAnalysis:
The list of tuples has the form:
(:class:`~ClassAnalysis`,
:class:`~androguard.core.bytecodes.dvm.EncodedMethod` or
:class:`~ExternalMethod`, :class:`int`)
:class:`~MethodAnalysis`,
:class:`int`)
"""
return self.xrefto