Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
baikaishuipp committed Sep 12, 2023
1 parent 938757d commit eea84a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/jcci/jcci.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit eea84a4

Please sign in to comment.