diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2024-04-29 15:24:02 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2024-04-29 15:26:57 +0200 |
commit | e6a4a2a1fb11d7870bf3cccde3dbf88071b5a5cf (patch) | |
tree | 9d413a45302ece976f7ca9f80feda17484340a12 /org.eclipse.jgit.test/tst | |
parent | a82cc38a981bececf7ca732317d444e8d37a3d1b (diff) | |
download | jgit-e6a4a2a1fb11d7870bf3cccde3dbf88071b5a5cf.tar.gz jgit-e6a4a2a1fb11d7870bf3cccde3dbf88071b5a5cf.zip |
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<C> should be
parameterized."
Change-Id: I5a74269f1af7369dd397dd0f1c3cd807c0351367
Diffstat (limited to 'org.eclipse.jgit.test/tst')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackHandleDeletedPackFileTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<Object> testProtocol = new TestProtocol<>( (Object req, Repository db) -> { UploadPack up = new UploadPack(db); up.setRequestPolicy(RequestPolicy.REACHABLE_COMMIT); |