aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.lfs.test/tst/org
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2024-09-16 08:36:31 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2024-10-01 21:32:56 +0200
commitb1c83bfbd799647ab6762eb493f3c018938488b1 (patch)
tree70504a8ab273442b4abf3b5479e170e2c28e7dbc /org.eclipse.jgit.lfs.test/tst/org
parent7ad2be2aa1c871c105418ed42db0aad53d7729a2 (diff)
downloadjgit-b1c83bfbd799647ab6762eb493f3c018938488b1.tar.gz
jgit-b1c83bfbd799647ab6762eb493f3c018938488b1.zip
LfsConnectionFactoryTest: remove unnecessary cast
Change-Id: I08ed51b13aa269a4f6b64ac723b6bd7649c6591c
Diffstat (limited to 'org.eclipse.jgit.lfs.test/tst/org')
-rw-r--r--org.eclipse.jgit.lfs.test/tst/org/eclipse/jgit/lfs/internal/LfsConnectionFactoryTest.java6
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,