aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/notes
diff options
context:
space:
mode:
authorThomas Wolf <thomas.wolf@paranor.ch>2021-09-30 09:31:12 +0200
committerThomas Wolf <thomas.wolf@paranor.ch>2021-09-30 09:31:12 +0200
commitbdba9edd5f1212aee33a5bb713c27b80a72617cb (patch)
tree6ea092d9b6912d269d488218e917d7e4704efede /org.eclipse.jgit/src/org/eclipse/jgit/notes
parent3d86d3e810d3c851d798259209eebfdcd0367516 (diff)
downloadjgit-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/src/org/eclipse/jgit/notes')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/notes/FanoutBucket.java2
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/notes/LeafBucket.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/notes/FanoutBucket.java b/org.eclipse.jgit/src/org/eclipse/jgit/notes/FanoutBucket.java
index 5ea511c545..493bcfbbed 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/notes/FanoutBucket.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/notes/FanoutBucket.java
@@ -102,7 +102,7 @@ class FanoutBucket extends InMemoryNoteBucket {
final MutableObjectId id = new MutableObjectId();
id.fromObjectId(objId);
- return new Iterator<Note>() {
+ return new Iterator<>() {
private int cell;
private Iterator<Note> itr;
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/notes/LeafBucket.java b/org.eclipse.jgit/src/org/eclipse/jgit/notes/LeafBucket.java
index 494045bf44..461adac5b2 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/notes/LeafBucket.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/notes/LeafBucket.java
@@ -86,7 +86,7 @@ class LeafBucket extends InMemoryNoteBucket {
@Override
Iterator<Note> iterator(AnyObjectId objId, ObjectReader reader) {
- return new Iterator<Note>() {
+ return new Iterator<>() {
private int idx;
@Override