diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2024-09-16 08:35:30 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2024-10-01 21:31:11 +0200 |
commit | 7ad2be2aa1c871c105418ed42db0aad53d7729a2 (patch) | |
tree | 71ee2f33fbfc3ddb27463400a2211bf0e853b322 /org.eclipse.jgit.ssh.jsch.test | |
parent | 764894804cdc6f11404e3c5b759db4b6094ce3af (diff) | |
download | jgit-7ad2be2aa1c871c105418ed42db0aad53d7729a2.tar.gz jgit-7ad2be2aa1c871c105418ed42db0aad53d7729a2.zip |
JSchSshProtocol2Test: remove unnecessary cast
Change-Id: Id3767f43cbbfd0c05f9a7f0d5620943da874df92
Diffstat (limited to 'org.eclipse.jgit.ssh.jsch.test')
-rw-r--r-- | org.eclipse.jgit.ssh.jsch.test/META-INF/MANIFEST.MF | 1 | ||||
-rw-r--r-- | org.eclipse.jgit.ssh.jsch.test/tst/org/eclipse/jgit/transport/ssh/jsch/JSchSshProtocol2Test.java | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.jgit.ssh.jsch.test/META-INF/MANIFEST.MF b/org.eclipse.jgit.ssh.jsch.test/META-INF/MANIFEST.MF index 0e1e396c7d..aa32e25a4e 100644 --- a/org.eclipse.jgit.ssh.jsch.test/META-INF/MANIFEST.MF +++ b/org.eclipse.jgit.ssh.jsch.test/META-INF/MANIFEST.MF @@ -10,6 +10,7 @@ Bundle-RequiredExecutionEnvironment: JavaSE-17 Require-Bundle: org.hamcrest.core;bundle-version="[1.3.0,2.0.0)" Import-Package: com.jcraft.jsch;version="[0.1.54,0.2.0)", org.eclipse.jgit.errors;version="[7.1.0,7.2.0)", + org.eclipse.jgit.internal.storage.file;version="[7.1.0,7.2.0)", org.eclipse.jgit.junit;version="[7.1.0,7.2.0)", org.eclipse.jgit.junit.ssh;version="[7.1.0,7.2.0)", org.eclipse.jgit.lib;version="[7.1.0,7.2.0)", diff --git a/org.eclipse.jgit.ssh.jsch.test/tst/org/eclipse/jgit/transport/ssh/jsch/JSchSshProtocol2Test.java b/org.eclipse.jgit.ssh.jsch.test/tst/org/eclipse/jgit/transport/ssh/jsch/JSchSshProtocol2Test.java index 611d4e8bcb..8aa33e3235 100644 --- a/org.eclipse.jgit.ssh.jsch.test/tst/org/eclipse/jgit/transport/ssh/jsch/JSchSshProtocol2Test.java +++ b/org.eclipse.jgit.ssh.jsch.test/tst/org/eclipse/jgit/transport/ssh/jsch/JSchSshProtocol2Test.java @@ -22,7 +22,6 @@ import java.util.Arrays; import org.eclipse.jgit.errors.TransportException; import org.eclipse.jgit.junit.ssh.SshBasicTestBase; import org.eclipse.jgit.lib.Constants; -import org.eclipse.jgit.lib.Repository; import org.eclipse.jgit.lib.StoredConfig; import org.eclipse.jgit.transport.CredentialsProvider; import org.eclipse.jgit.transport.RemoteSession; @@ -89,7 +88,8 @@ public class JSchSshProtocol2Test extends SshBasicTestBase { @Override public void setUp() throws Exception { super.setUp(); - StoredConfig config = ((Repository) db).getConfig(); + @SuppressWarnings("restriction") + StoredConfig config = db.getConfig(); config.setInt("protocol", null, "version", 2); config.save(); } |