From: Matthias Sohn Date: Mon, 16 Sep 2024 06:32:55 +0000 (+0200) Subject: ApacheSshProtocol2Test: remove unnecessary cast X-Git-Tag: v7.1.0.202410232130-m2~1^2^2^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a2e477296461e006ea0b6383fa73017242d18775;p=jgit.git ApacheSshProtocol2Test: remove unnecessary cast Change-Id: Ie8e7b097e48342a9cda6873e8595146a1b3f1427 --- diff --git a/org.eclipse.jgit.ssh.apache.test/META-INF/MANIFEST.MF b/org.eclipse.jgit.ssh.apache.test/META-INF/MANIFEST.MF index 64c40628b1..b8073e202e 100644 --- a/org.eclipse.jgit.ssh.apache.test/META-INF/MANIFEST.MF +++ b/org.eclipse.jgit.ssh.apache.test/META-INF/MANIFEST.MF @@ -24,6 +24,7 @@ Import-Package: org.apache.sshd.client.config.hosts;version="[2.12.0,2.13.0)", org.apache.sshd.server.forward;version="[2.12.0,2.13.0)", org.eclipse.jgit.api;version="[6.10.1,6.11.0)", org.eclipse.jgit.api.errors;version="[6.10.1,6.11.0)", + org.eclipse.jgit.internal.storage.file;version="[6.10.1,6.11.0)", org.eclipse.jgit.internal.transport.sshd.proxy;version="[6.10.1,6.11.0)", org.eclipse.jgit.junit;version="[6.10.1,6.11.0)", org.eclipse.jgit.junit.ssh;version="[6.10.1,6.11.0)", diff --git a/org.eclipse.jgit.ssh.apache.test/tst/org/eclipse/jgit/transport/sshd/ApacheSshProtocol2Test.java b/org.eclipse.jgit.ssh.apache.test/tst/org/eclipse/jgit/transport/sshd/ApacheSshProtocol2Test.java index eef0402b07..69bd5c501a 100644 --- a/org.eclipse.jgit.ssh.apache.test/tst/org/eclipse/jgit/transport/sshd/ApacheSshProtocol2Test.java +++ b/org.eclipse.jgit.ssh.apache.test/tst/org/eclipse/jgit/transport/sshd/ApacheSshProtocol2Test.java @@ -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(); }