From e6a4a2a1fb11d7870bf3cccde3dbf88071b5a5cf Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Mon, 29 Apr 2024 15:24:02 +0200 Subject: [PATCH] Fix warning about using raw type 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 should be parameterized." Change-Id: I5a74269f1af7369dd397dd0f1c3cd807c0351367 --- .../jgit/transport/UploadPackHandleDeletedPackFileTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackHandleDeletedPackFileTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackHandleDeletedPackFileTest.java index 097b84974f..272c5ea5b5 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackHandleDeletedPackFileTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackHandleDeletedPackFileTest.java @@ -90,7 +90,7 @@ public class UploadPackHandleDeletedPackFileTest private void doRemovePackFileDuringUploadPack(PackExt packExt) throws Exception { Object ctx = new Object(); - TestProtocol testProtocol = new TestProtocol<>( + TestProtocol testProtocol = new TestProtocol<>( (Object req, Repository db) -> { UploadPack up = new UploadPack(db); up.setRequestPolicy(RequestPolicy.REACHABLE_COMMIT); -- 2.39.5