From 112ca2b863e3caf647645eebd87423925a271e3e Mon Sep 17 00:00:00 2001 From: Matias Saavedra Silva Date: Tue, 27 Sep 2022 15:39:31 +0000 Subject: [PATCH] 8293964: Unused check_for_duplicates parameter in ClassLoaderExt::process_jar_manifest Reviewed-by: ccheung, dholmes --- src/hotspot/share/classfile/classLoader.cpp | 2 +- src/hotspot/share/classfile/classLoaderExt.cpp | 3 +-- src/hotspot/share/classfile/classLoaderExt.hpp | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/hotspot/share/classfile/classLoader.cpp b/src/hotspot/share/classfile/classLoader.cpp index 7125457637b..591ea7838a8 100644 --- a/src/hotspot/share/classfile/classLoader.cpp +++ b/src/hotspot/share/classfile/classLoader.cpp @@ -830,7 +830,7 @@ void ClassLoader::add_to_app_classpath_entries(JavaThread* current, } if (entry->is_jar_file()) { - ClassLoaderExt::process_jar_manifest(current, entry, check_for_duplicates); + ClassLoaderExt::process_jar_manifest(current, entry); } #endif } diff --git a/src/hotspot/share/classfile/classLoaderExt.cpp b/src/hotspot/share/classfile/classLoaderExt.cpp index 9b8107d70ff..ec5749db8cb 100644 --- a/src/hotspot/share/classfile/classLoaderExt.cpp +++ b/src/hotspot/share/classfile/classLoaderExt.cpp @@ -182,8 +182,7 @@ char* ClassLoaderExt::get_class_path_attr(const char* jar_path, char* manifest, return found; } -void ClassLoaderExt::process_jar_manifest(JavaThread* current, ClassPathEntry* entry, - bool check_for_duplicates) { +void ClassLoaderExt::process_jar_manifest(JavaThread* current, ClassPathEntry* entry) { ResourceMark rm(current); jint manifest_size; char* manifest = read_manifest(current, entry, &manifest_size); diff --git a/src/hotspot/share/classfile/classLoaderExt.hpp b/src/hotspot/share/classfile/classLoaderExt.hpp index 7e58bc6d1e3..b76ce3ff33a 100644 --- a/src/hotspot/share/classfile/classLoaderExt.hpp +++ b/src/hotspot/share/classfile/classLoaderExt.hpp @@ -61,7 +61,7 @@ private: static char* read_manifest(JavaThread* current, ClassPathEntry* entry, jint *manifest_size, bool clean_text); public: - static void process_jar_manifest(JavaThread* current, ClassPathEntry* entry, bool check_for_duplicates); + static void process_jar_manifest(JavaThread* current, ClassPathEntry* entry); // Called by JVMTI code to add boot classpath static void append_boot_classpath(ClassPathEntry* new_entry);