]> source.dussan.org Git - jgit.git/commitdiff
Fix warning about using raw type 25/1194025/1
authorMatthias Sohn <matthias.sohn@sap.com>
Mon, 29 Apr 2024 13:24:02 +0000 (15:24 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 29 Apr 2024 13:26:57 +0000 (15:26 +0200)
This fixes the warning in UploadPackHandleDeletedPackFileTest. line 116:

"Type safety: The method register(Object, Repository) belongs to the raw
type TestProtocol. References to generic type TestProtocol<C> should be
parameterized."

Change-Id: I5a74269f1af7369dd397dd0f1c3cd807c0351367

org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackHandleDeletedPackFileTest.java

index 097b84974f6814f58f14dc0ae0666d28daf786e3..272c5ea5b5f5ab4606f4c0517ab81fdc5f419d8e 100644 (file)
@@ -90,7 +90,7 @@ public class UploadPackHandleDeletedPackFileTest
        private void doRemovePackFileDuringUploadPack(PackExt packExt)
                        throws Exception {
                Object ctx = new Object();
-               TestProtocol testProtocol = new TestProtocol<>(
+               TestProtocol<Object> testProtocol = new TestProtocol<>(
                                (Object req, Repository db) -> {
                                        UploadPack up = new UploadPack(db);
                                        up.setRequestPolicy(RequestPolicy.REACHABLE_COMMIT);