diff options
Diffstat (limited to 'org.eclipse.jgit.lfs.test/tst')
-rw-r--r-- | org.eclipse.jgit.lfs.test/tst/org/eclipse/jgit/lfs/internal/LfsConnectionFactoryTest.java | 6 |
1 files changed, 4 insertions, 2 deletions
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 badcb7d7e5..ee8e893b3e 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 class LfsConnectionFactoryTest extends RepositoryTestCase { 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 class LfsConnectionFactoryTest extends RepositoryTestCase { 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, |