提交 7082d981 编写于 作者: M mchung

6819110: Lazily load Sun digest provider for jar verification

Summary: Lazily call Providers.getSunProvider() instead of at static initializer
Reviewed-by: mullan
上级 4af6b49e
......@@ -44,8 +44,6 @@ public class ManifestEntryVerifier {
private static final Debug debug = Debug.getInstance("jar");
private static final Provider digestProvider = Providers.getSunProvider();
/** the created digest objects */
HashMap<String, MessageDigest> createdDigests;
......@@ -127,7 +125,7 @@ public class ManifestEntryVerifier {
try {
digest = MessageDigest.getInstance
(algorithm, digestProvider);
(algorithm, Providers.getSunProvider());
createdDigests.put(algorithm, digest);
} catch (NoSuchAlgorithmException nsae) {
// ignore
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册