LfsConnectionFactoryTest: remove unnecessary cast Change-Id: I08ed51b13aa269a4f6b64ac723b6bd7649c6591c
diff --git a/org.eclipse.jgit.lfs.test/META-INF/MANIFEST.MF b/org.eclipse.jgit.lfs.test/META-INF/MANIFEST.MF index 0aa081f..506141d 100644 --- a/org.eclipse.jgit.lfs.test/META-INF/MANIFEST.MF +++ b/org.eclipse.jgit.lfs.test/META-INF/MANIFEST.MF
@@ -10,6 +10,7 @@ Import-Package: org.eclipse.jgit.api;version="[7.1.0,7.2.0)", org.eclipse.jgit.attributes;version="[7.1.0,7.2.0)", org.eclipse.jgit.internal.storage.dfs;version="[7.1.0,7.2.0)", + org.eclipse.jgit.internal.storage.file;version="[7.1.0,7.2.0)", org.eclipse.jgit.junit;version="[7.1.0,7.2.0)", org.eclipse.jgit.lfs;version="[7.1.0,7.2.0)", org.eclipse.jgit.lfs.errors;version="[7.1.0,7.2.0)",
diff --git a/org.eclipse.jgit.lfs.test/tst/org/eclipse/jgit/lfs/internal/LfsConnectionFactoryTest.java b/org.eclipse.jgit.lfs.test/tst/org/eclipse/jgit/lfs/internal/LfsConnectionFactoryTest.java index badcb7d..ee8e893 100644 --- a/org.eclipse.jgit.lfs.test/tst/org/eclipse/jgit/lfs/internal/LfsConnectionFactoryTest.java +++ b/org.eclipse.jgit.lfs.test/tst/org/eclipse/jgit/lfs/internal/LfsConnectionFactoryTest.java
@@ -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,