From bdba9edd5f1212aee33a5bb713c27b80a72617cb Mon Sep 17 00:00:00 2001 From: Thomas Wolf Date: Thu, 30 Sep 2021 09:31:12 +0200 Subject: Remove redundant type arguments In Java 11 type arguments for anonymous subclasses can be inferred and don't need to be specified. This resolves a number of compiler warnings. Change-Id: I55eff3babb7628aa0627085e65a1b45eb12c2cd3 Signed-off-by: Thomas Wolf --- .../src/org/eclipse/jgit/junit/http/MockServletConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'org.eclipse.jgit.junit.http') diff --git a/org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/MockServletConfig.java b/org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/MockServletConfig.java index f2af67d273..715fd19451 100644 --- a/org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/MockServletConfig.java +++ b/org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/MockServletConfig.java @@ -44,7 +44,8 @@ public class MockServletConfig implements ServletConfig { @Override public Enumeration getInitParameterNames() { final Iterator i = parameters.keySet().iterator(); - return new Enumeration() { + return new Enumeration<>() { + @Override public boolean hasMoreElements() { return i.hasNext(); -- cgit v1.2.3