]> source.dussan.org Git - jgit.git/commitdiff
LfsConnectionFactoryTest: remove unnecessary cast 48/1202348/1
authorMatthias Sohn <matthias.sohn@sap.com>
Mon, 16 Sep 2024 06:36:31 +0000 (08:36 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 9 Oct 2024 22:32:55 +0000 (00:32 +0200)
Change-Id: I08ed51b13aa269a4f6b64ac723b6bd7649c6591c

org.eclipse.jgit.lfs.test/META-INF/MANIFEST.MF
org.eclipse.jgit.lfs.test/tst/org/eclipse/jgit/lfs/internal/LfsConnectionFactoryTest.java

index 45192f51dd977b07a34f82336d1392e2ab3dffeb..509a0d7283a7ddc393f62137384831b7793c8f6d 100644 (file)
@@ -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)",
index badcb7d7e5948bd1e82a1def261d757880f1c1e8..ee8e893b3e80851b63a714be5c071468febfacfd 100644 (file)
@@ -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,