package org.ethereum.crypto.jce;

import org.spongycastle.jce.provider.BouncyCastleProvider;

import java.security.Provider;
import java.security.Security;

public final class SpongyCastleProvider {

  private static final String PROVIDER_NAME = BouncyCastleProvider.PROVIDER_NAME;

  private static class Holder {
    private static final Provider INSTANCE;

    static {
      Provider provider = Security.getProvider(PROVIDER_NAME);

      if (provider == null) {
        INSTANCE = new BouncyCastleProvider();
        Security.addProvider(INSTANCE);
      } else {
        INSTANCE = provider;
      }
    }
  }

  public static Provider getInstance() {
    return Holder.INSTANCE;
  }
}

@@ -121,39 +121,8 @@
 der;
-%0Aimport java.security.Security;
 %0A%0Apu
@@ -183,402 +183,95 @@
 tic 
-final String PROVIDER_NAME = BouncyCastleProvider.PROVIDER_NAME;%0A%0A  private static class Holder %7B%0A    private static final Provider INSTANCE;%0A%0A    static %7B%0A      Provider provider = Security.getProvider(PROVIDER_NAME);%0A%0A      if (provider == null) %7B%0A        INSTANCE = new BouncyCastleProvider();%0A        Security.addProvider(INSTANCE);%0A      %7D else %7B%0A        INSTANCE = provider;%0A      %7D%0A    %7D
+class Holder %7B%0A    private static final Provider INSTANCE = new BouncyCastleProvider();
 %0A  %7D

revise commit 41cf427