summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
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.test
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.test')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/HistogramDiffTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/HistogramDiffTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/HistogramDiffTest.java
index 0256848e1d..3e288673ff 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/HistogramDiffTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/HistogramDiffTest.java
@@ -61,7 +61,8 @@ public class HistogramDiffTest extends AbstractDiffTestCase {
hd.setFallbackAlgorithm(null);
hd.setMaxChainLength(3);
- SequenceComparator<RawText> cmp = new SequenceComparator<RawText>() {
+ SequenceComparator<RawText> cmp = new SequenceComparator<>() {
+
@Override
public boolean equals(RawText a, int ai, RawText b, int bi) {
return RawTextComparator.DEFAULT.equals(a, ai, b, bi);