diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2024-09-16 08:32:55 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2024-10-01 21:27:22 +0200 |
commit | 764894804cdc6f11404e3c5b759db4b6094ce3af (patch) | |
tree | a5e01b9000712bdc7178b62ea2ee2f4eb98be30f | |
parent | 17882b1cd8e66a174468633b1b8eb695c86011cf (diff) | |
download | jgit-764894804cdc6f11404e3c5b759db4b6094ce3af.tar.gz jgit-764894804cdc6f11404e3c5b759db4b6094ce3af.zip |
ApacheSshProtocol2Test: remove unnecessary cast
Change-Id: Ie8e7b097e48342a9cda6873e8595146a1b3f1427
-rw-r--r-- | org.eclipse.jgit.ssh.apache.test/META-INF/MANIFEST.MF | 1 | ||||
-rw-r--r-- | org.eclipse.jgit.ssh.apache.test/tst/org/eclipse/jgit/transport/sshd/ApacheSshProtocol2Test.java | 4 |
2 files changed, 3 insertions, 2 deletions
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 1f8edac3a8..f16c96040c 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.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)", 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(); } |