Skip to content
Snippets Groups Projects
Commit ed083585 authored by Matthias Sohn's avatar Matthias Sohn
Browse files

LfsConnectionFactoryTest: remove unnecessary cast

Change-Id: I08ed51b13aa269a4f6b64ac723b6bd7649c6591c
parent 72652ff6
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ Bundle-RequiredExecutionEnvironment: JavaSE-11
Import-Package: org.eclipse.jgit.api;version="[6.10.1,6.11.0)",
org.eclipse.jgit.attributes;version="[6.10.1,6.11.0)",
org.eclipse.jgit.internal.storage.dfs;version="[6.10.1,6.11.0)",
org.eclipse.jgit.internal.storage.file;version="[6.10.1,6.11.0)",
org.eclipse.jgit.junit;version="[6.10.1,6.11.0)",
org.eclipse.jgit.lfs;version="[6.10.1,6.11.0)",
org.eclipse.jgit.lfs.errors;version="[6.10.1,6.11.0)",
......
......@@ -97,7 +97,8 @@ public void lfsUrlFromRemoteUrlWithoutDotGit() throws Exception {
public void lfsUrlFromLocalConfig() throws Exception {
addRemoteUrl("https://localhost/repo");
StoredConfig cfg = ((Repository) db).getConfig();
@SuppressWarnings("restriction")
StoredConfig cfg = db.getConfig();
cfg.setString(ConfigConstants.CONFIG_SECTION_LFS,
null,
ConfigConstants.CONFIG_KEY_URL,
......@@ -111,7 +112,8 @@ public void lfsUrlFromLocalConfig() throws Exception {
public void lfsUrlFromOriginConfig() throws Exception {
addRemoteUrl("https://localhost/repo");
StoredConfig cfg = ((Repository) db).getConfig();
@SuppressWarnings("restriction")
StoredConfig cfg = db.getConfig();
cfg.setString(ConfigConstants.CONFIG_SECTION_LFS,
org.eclipse.jgit.lib.Constants.DEFAULT_REMOTE_NAME,
ConfigConstants.CONFIG_KEY_URL,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment