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