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)",
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;
@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();
}