6819110: Lazily load Sun digest provider for jar verification
Lazily call Providers.getSunProvider() instead of at static initializer Reviewed-by: mullan
This commit is contained in:
parent
445c56f3ea
commit
1870624c08
@ -44,8 +44,6 @@ public class ManifestEntryVerifier {
|
|||||||
|
|
||||||
private static final Debug debug = Debug.getInstance("jar");
|
private static final Debug debug = Debug.getInstance("jar");
|
||||||
|
|
||||||
private static final Provider digestProvider = Providers.getSunProvider();
|
|
||||||
|
|
||||||
/** the created digest objects */
|
/** the created digest objects */
|
||||||
HashMap<String, MessageDigest> createdDigests;
|
HashMap<String, MessageDigest> createdDigests;
|
||||||
|
|
||||||
@ -127,7 +125,7 @@ public class ManifestEntryVerifier {
|
|||||||
try {
|
try {
|
||||||
|
|
||||||
digest = MessageDigest.getInstance
|
digest = MessageDigest.getInstance
|
||||||
(algorithm, digestProvider);
|
(algorithm, Providers.getSunProvider());
|
||||||
createdDigests.put(algorithm, digest);
|
createdDigests.put(algorithm, digest);
|
||||||
} catch (NoSuchAlgorithmException nsae) {
|
} catch (NoSuchAlgorithmException nsae) {
|
||||||
// ignore
|
// ignore
|
||||||
|
Loading…
Reference in New Issue
Block a user