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
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);