Skip to content

Commit

Permalink
cleanup debug code
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Lamy <[email protected]>
  • Loading branch information
olamy committed May 27, 2024
1 parent 3180a4e commit ba87e22
Showing 1 changed file with 1 addition and 68 deletions.
69 changes: 1 addition & 68 deletions src/main/java/org/jenkinsci/plugins/gitclient/JGitAPIImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,74 +155,7 @@ public class JGitAPIImpl extends LegacyCompatibleGitAPIImpl {

private final HostKeyVerifierFactory hostKeyVerifierFactory;
private transient CredentialsProvider provider;

// static {
// // to avoid any registration of using "net.i2p.crypto.eddsa.EdDSASecurityProvider";
// ClassLoader orig = Thread.currentThread().getContextClassLoader();
//
// try {
// Thread.currentThread()
// .setContextClassLoader(Jenkins.get().getPlugin("git-client").getWrapper().classLoader);
// LOGGER.info(
// "configuring SecurityUtils, isRegistrationCompleted:" +
// SecurityUtils.isRegistrationCompleted());
// ///SecurityUtils.setDefaultProviderChoice(new BouncyCastleSecurityProviderRegistrar());
// LOGGER.info("SecurityUtils.isEDDSACurveSupported():" + SecurityUtils.isEDDSACurveSupported());
//
// LOGGER.info("SecurityUtils.getRegisteredProviders():" + SecurityUtils.getRegisteredProviders());
// } catch (Throwable e) {
// e.printStackTrace();
// } finally {
// Thread.currentThread().setContextClassLoader(orig);
// }
// }
//
// static {
// try {
// Class<?> clazz = Jenkins.get()
// .getPlugin("git-client")
// .getWrapper()
// .classLoader
// .loadClass("org.bouncycastle.jce.provider.BouncyCastleProvider");
// System.out.println("yup: " + clazz);
// } catch (ClassNotFoundException e) {
// e.printStackTrace();
// }
//
// try {
// Class<?> clazz = Jenkins.get()
// .getPlugin("git")
// .getWrapper()
// .classLoader
// .loadClass("net.i2p.crypto.eddsa.EdDSASecurityProvider");
// System.out.println("yup: " + clazz);
// } catch (Throwable e) {
// e.printStackTrace();
// }
//
// try {
// org.bouncycastle.jce.provider.BouncyCastleProvider foo =
// new org.bouncycastle.jce.provider.BouncyCastleProvider();
// int size = foo.size();
// System.out.println("size: " + size);
// Thread.currentThread()
// .getContextClassLoader()
// .loadClass("org.bouncycastle.jce.provider.BouncyCastleProvider");
// } catch (Throwable e) {
// e.printStackTrace();
// }
//
// try {
// net.i2p.crypto.eddsa.EdDSASecurityProvider foo = new net.i2p.crypto.eddsa.EdDSASecurityProvider();
// int size = foo.size();
// System.out.println("size: " + size);
//
// Thread.currentThread().getContextClassLoader().loadClass("net.i2p.crypto.eddsa.EdDSASecurityProvider");
// } catch (Throwable e) {
// e.printStackTrace();
// }
// }


JGitAPIImpl(File workspace, TaskListener listener) {
/* If workspace is null, then default to current directory to match
* CliGitAPIImpl behavior */
Expand Down

0 comments on commit ba87e22

Please sign in to comment.