Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
baikaishuipp committed Aug 16, 2023
1 parent 4c275f1 commit a9788c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "jcci"
version = "0.0.11"
version = "0.0.12"
authors = [
{ name="Oliver Li", email="[email protected]" },
]
Expand Down
2 changes: 2 additions & 0 deletions src/jcci/jcci.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ def _analyze_java_file(filepath, folder_name):
extends_name_path = import_path
if implements_names and import_path_class in implements_names:
implements_names_list.append(import_path)
if implements_names and not implements_names_list:
implements_names_list.append(package_name + '.' + implements_names[0])
imports = JavaImports(
tree.imports[0].position.line if tree.imports else None,
tree.imports[-1].position.line if tree.imports else None,
Expand Down

0 comments on commit a9788c0

Please sign in to comment.