From eea84a4b0188a6508e5dc69015f7ad40a1fa80d0 Mon Sep 17 00:00:00 2001 From: baikaishuipp <441640312@qq.com> Date: Tue, 12 Sep 2023 09:47:07 +0800 Subject: [PATCH] Fix bug --- src/jcci/jcci.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jcci/jcci.py b/src/jcci/jcci.py index c3c69ff..5f315cf 100644 --- a/src/jcci/jcci.py +++ b/src/jcci/jcci.py @@ -652,7 +652,8 @@ def _diff_result_impact(diff_result_item_index, diff_results_list, which_java_fi which_java_file_declarators = [declarator for declarator in which_java_file_analyze.declarators if declarator.type == which_class_name or declarator.res_name == which_class_name or - declarator.res_type == which_class_path + declarator.res_type == which_class_path or + declarator.contains_class == which_implements[0] ] for which_java_file_method in which_java_file_methods: classname_in_method = False @@ -681,10 +682,10 @@ def _diff_result_impact(diff_result_item_index, diff_results_list, which_java_fi tmp += [diff_result_item.changed_methods[j] for j in diff_result_item.changed_methods.keys() if mode in diff_result_item.changed_methods[j]['diff_impact'] and ('(' + j + '(' in method_content_str - or '=' + j + '(' in method_content_str or '=' + j + '(' in method_content_str or '= ' + j + '(' in method_content_str or declarator.name + '.' + j + '(' in method_content_str + or which_class_name + '.' + j + '(' in method_content_str ) ] if len(tmp) > 0 or classname_in_method: