diff options
author | Thomas Wolf <thomas.wolf@paranor.ch> | 2021-09-30 09:31:12 +0200 |
---|---|---|
committer | Thomas Wolf <thomas.wolf@paranor.ch> | 2021-09-30 09:31:12 +0200 |
commit | bdba9edd5f1212aee33a5bb713c27b80a72617cb (patch) | |
tree | 6ea092d9b6912d269d488218e917d7e4704efede /org.eclipse.jgit.junit.http | |
parent | 3d86d3e810d3c851d798259209eebfdcd0367516 (diff) | |
download | jgit-bdba9edd5f1212aee33a5bb713c27b80a72617cb.tar.gz jgit-bdba9edd5f1212aee33a5bb713c27b80a72617cb.zip |
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 <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit.junit.http')
-rw-r--r-- | org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/MockServletConfig.java | 3 |
1 files changed, 2 insertions, 1 deletions
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<String> getInitParameterNames() { final Iterator<String> i = parameters.keySet().iterator(); - return new Enumeration<String>() { + return new Enumeration<>() { + @Override public boolean hasMoreElements() { return i.hasNext(); |