File tree Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Original file line number Diff line number Diff line change @@ -248,14 +248,12 @@ def findMethodInCaller(
248
248
targetMethod : List [str ]
249
249
) -> bool :
250
250
"""
251
- Check if target method in caller method.
251
+ Check if target method is in caller method.
252
252
253
- :params callerMethod: python list contains class name, method name and
253
+ :params callerMethod: python list contains class name, method name and
254
254
descriptor of caller method.
255
-
256
- :params targetMethod: python list contains class name, method name and
255
+ :params targetMethod: python list contains class name, method name and
257
256
descriptor of target method.
258
-
259
257
:return: True/False
260
258
"""
261
259
@@ -292,17 +290,3 @@ def runQuarkAnalysis(samplePath: PathLike, ruleInstance: Rule) -> QuarkResult:
292
290
analysis = QuarkResult (quark , ruleInstance )
293
291
294
292
return analysis
295
-
296
-
297
- def strToMethodObj (method : str ) -> MethodObject :
298
- result = method .replace (" " , "" ).split ("->" )
299
- className = result [0 ]
300
- methodName = result [1 ].split ("(" )[0 ]
301
- descriptor = f"({ result [1 ].split ('(' )[1 ]} "
302
-
303
- methodObj = MethodObject (class_name = className ,
304
- name = methodName , descriptor = descriptor )
305
- print (methodObj )
306
- # methodInstance = Method(methodObj=methodObj)
307
-
308
- return methodObj
You can’t perform that action at this time.
0 commit comments