From 764894804cdc6f11404e3c5b759db4b6094ce3af Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Mon, 16 Sep 2024 08:32:55 +0200 Subject: ApacheSshProtocol2Test: remove unnecessary cast Change-Id: Ie8e7b097e48342a9cda6873e8595146a1b3f1427 --- .../tst/org/eclipse/jgit/transport/sshd/ApacheSshProtocol2Test.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'org.eclipse.jgit.ssh.apache.test/tst/org/eclipse/jgit') 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(); } -- cgit v1.2.3