aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.ssh.jsch.test/tst
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2024-09-16 08:35:30 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2024-10-10 00:24:01 +0200
commit72652ff65bcddf6ff3d9f2bed7027c9287ba86e6 (patch)
tree9c4bbcde3371ace1c20a9c4dc9baa19dc2a7917e /org.eclipse.jgit.ssh.jsch.test/tst
parenta2e477296461e006ea0b6383fa73017242d18775 (diff)
downloadjgit-72652ff65bcddf6ff3d9f2bed7027c9287ba86e6.tar.gz
jgit-72652ff65bcddf6ff3d9f2bed7027c9287ba86e6.zip
JSchSshProtocol2Test: remove unnecessary cast
Change-Id: Id3767f43cbbfd0c05f9a7f0d5620943da874df92
Diffstat (limited to 'org.eclipse.jgit.ssh.jsch.test/tst')
-rw-r--r--org.eclipse.jgit.ssh.jsch.test/tst/org/eclipse/jgit/transport/ssh/jsch/JSchSshProtocol2Test.java4
1 files changed, 2 insertions, 2 deletions
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();
}