jdk/src/java.base/share/classes/com/sun/crypto/provider/SunJCE.java
changeset 34774 03b4e6dc367b
parent 33991 619bfc4d582d
child 37796 256c45c4af5d
equal deleted inserted replaced
34764:f9bcdce2df26 34774:03b4e6dc367b
    91     /* Are we debugging? -- for developers */
    91     /* Are we debugging? -- for developers */
    92     static final boolean debug = false;
    92     static final boolean debug = false;
    93 
    93 
    94     // Instance of this provider, so we don't have to call the provider list
    94     // Instance of this provider, so we don't have to call the provider list
    95     // to find ourselves or run the risk of not being in the list.
    95     // to find ourselves or run the risk of not being in the list.
    96     private static volatile SunJCE instance = null;
    96     private static volatile SunJCE instance;
    97 
    97 
    98     // lazy initialize SecureRandom to avoid potential recursion if Sun
    98     // lazy initialize SecureRandom to avoid potential recursion if Sun
    99     // provider has not been installed yet
    99     // provider has not been installed yet
   100     private static class SecureRandomHolder {
   100     private static class SecureRandomHolder {
   101         static final SecureRandom RANDOM = new SecureRandom();
   101         static final SecureRandom RANDOM = new SecureRandom();