File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
src/java.base/share/classes/sun/security/jca Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -56,14 +56,6 @@ public class Providers {
56
56
// Note volatile immutable object, so no synchronization needed.
57
57
private static volatile ProviderList providerList ;
58
58
59
- static {
60
- // set providerList to empty list first in case initialization somehow
61
- // triggers a getInstance() call (although that should not happen)
62
- providerList = ProviderList .EMPTY ;
63
- providerList = ProviderList .fromSecurityProperties ();
64
- RestrictedSecurity .checkHashValues ();
65
- }
66
-
67
59
private Providers () {
68
60
// empty
69
61
}
@@ -114,6 +106,14 @@ private Providers() {
114
106
"com.sun.crypto.provider.SunJCE" ,
115
107
};
116
108
109
+ static {
110
+ // set providerList to empty list first in case initialization somehow
111
+ // triggers a getInstance() call (although that should not happen)
112
+ providerList = ProviderList .EMPTY ;
113
+ providerList = ProviderList .fromSecurityProperties ();
114
+ RestrictedSecurity .checkHashValues ();
115
+ }
116
+
117
117
// Return Sun provider.
118
118
// This method should only be called by
119
119
// sun.security.util.ManifestEntryVerifier and java.security.SecureRandom.
You can’t perform that action at this time.
0 commit comments