]> source.dussan.org Git - jgit.git/commitdiff
ApacheSshProtocol2Test: remove unnecessary cast 55/1200655/3
authorMatthias Sohn <matthias.sohn@sap.com>
Mon, 16 Sep 2024 06:32:55 +0000 (08:32 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 1 Oct 2024 19:27:22 +0000 (21:27 +0200)
Change-Id: Ie8e7b097e48342a9cda6873e8595146a1b3f1427

org.eclipse.jgit.ssh.apache.test/META-INF/MANIFEST.MF
org.eclipse.jgit.ssh.apache.test/tst/org/eclipse/jgit/transport/sshd/ApacheSshProtocol2Test.java

index 1f8edac3a8590defb637e68481f968a4d48d134d..f16c96040ccec4f228c2d7d0b3b14a0a7b1ca516 100644 (file)
@@ -24,6 +24,7 @@ Import-Package: org.apache.sshd.client.config.hosts;version="[2.13.2,2.14.0)",
  org.apache.sshd.server.forward;version="[2.13.2,2.14.0)",
  org.eclipse.jgit.api;version="[7.1.0,7.2.0)",
  org.eclipse.jgit.api.errors;version="[7.1.0,7.2.0)",
+ org.eclipse.jgit.internal.storage.file;version="[7.1.0,7.2.0)",
  org.eclipse.jgit.internal.transport.sshd.proxy;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)",
index eef0402b079c660c4e2de7e1896d233bb9619b5f..69bd5c501ae032983159c3b7edf50ef1ac139b28 100644 (file)
@@ -17,7 +17,6 @@ import java.util.Arrays;
 
 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.SshSessionFactory;
 import org.eclipse.jgit.util.FS;
@@ -52,7 +51,8 @@ public class ApacheSshProtocol2Test 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();
        }