Skip to content

Commit 112ca2b

Browse files
matias9927calvinccheung
authored andcommitted
8293964: Unused check_for_duplicates parameter in ClassLoaderExt::process_jar_manifest
Reviewed-by: ccheung, dholmes
1 parent 99017b0 commit 112ca2b

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/hotspot/share/classfile/classLoader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ void ClassLoader::add_to_app_classpath_entries(JavaThread* current,
830830
}
831831

832832
if (entry->is_jar_file()) {
833-
ClassLoaderExt::process_jar_manifest(current, entry, check_for_duplicates);
833+
ClassLoaderExt::process_jar_manifest(current, entry);
834834
}
835835
#endif
836836
}

src/hotspot/share/classfile/classLoaderExt.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,7 @@ char* ClassLoaderExt::get_class_path_attr(const char* jar_path, char* manifest,
182182
return found;
183183
}
184184

185-
void ClassLoaderExt::process_jar_manifest(JavaThread* current, ClassPathEntry* entry,
186-
bool check_for_duplicates) {
185+
void ClassLoaderExt::process_jar_manifest(JavaThread* current, ClassPathEntry* entry) {
187186
ResourceMark rm(current);
188187
jint manifest_size;
189188
char* manifest = read_manifest(current, entry, &manifest_size);

src/hotspot/share/classfile/classLoaderExt.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class ClassLoaderExt: public ClassLoader { // AllStatic
6161
static char* read_manifest(JavaThread* current, ClassPathEntry* entry, jint *manifest_size, bool clean_text);
6262

6363
public:
64-
static void process_jar_manifest(JavaThread* current, ClassPathEntry* entry, bool check_for_duplicates);
64+
static void process_jar_manifest(JavaThread* current, ClassPathEntry* entry);
6565

6666
// Called by JVMTI code to add boot classpath
6767
static void append_boot_classpath(ClassPathEntry* new_entry);

0 commit comments

Comments
 (0)