Skip to content

Commit 0e172ed

Browse files
committed
! show-duplicate-java-classes: improve jar in jar index marker
1 parent fd6bfed commit 0e172ed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/show-duplicate-java-classes

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,11 @@ def list_class_under_jar_file(jar_file, recursive, progress):
122122
def list_zip_in_zip(jar_jar_path, zf):
123123
nonlocal index
124124
index += 1
125+
index_marker = ''
126+
if recursive:
127+
index_marker = ' #%3s' % index
125128
print_responsive_message('list class under jar file(%*s/%s%s): %s' % (
126-
len(str(progress[1])), progress[0], progress[1], ' #' + str(index) if recursive else '', jar_jar_path))
129+
len(str(progress[1])), progress[0], progress[1], index_marker, jar_jar_path))
127130

128131
ret = {}
129132
classes = {f for f in zf.namelist() if f.lower().endswith('.class')}

0 commit comments

Comments
 (0)