]> source.dussan.org Git - jgit.git/commitdiff
JSchSshProtocol2Test: remove unnecessary cast 56/1200656/4
authorMatthias Sohn <matthias.sohn@sap.com>
Mon, 16 Sep 2024 06:35:30 +0000 (08:35 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 1 Oct 2024 19:31:11 +0000 (21:31 +0200)
Change-Id: Id3767f43cbbfd0c05f9a7f0d5620943da874df92

org.eclipse.jgit.ssh.jsch.test/META-INF/MANIFEST.MF
org.eclipse.jgit.ssh.jsch.test/tst/org/eclipse/jgit/transport/ssh/jsch/JSchSshProtocol2Test.java

index 0e1e396c7d0ef6442d9eebd004655ecb318a6d5f..aa32e25a4e12c13261c6139f6a92516d2fbe81b6 100644 (file)
@@ -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)",
index 611d4e8bcba01b41ce4e403502f553d9121f6a3a..8aa33e32350c88a13ebfa979217adda1b093894a 100644 (file)
@@ -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();
        }