diff --git a/org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/AccessEvent.java b/org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/AccessEvent.java index 6b7853d73..0154a7fc7 100644 --- a/org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/AccessEvent.java +++ b/org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/AccessEvent.java @@ -102,7 +102,7 @@ public class AccessEvent { @SuppressWarnings("unchecked") private static Map clone(Map parameterMap) { - return new TreeMap(parameterMap); + return new TreeMap<>(parameterMap); } /** @return {@code "GET"} or {@code "POST"} */