Remove redundant type declaration.

Change-Id: Ia06410f90fb16dedd6e65555ea8a6101870f9931
Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/180513
Tested-by: Platform Bot <platform-bot@eclipse.org>
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/DocumentLineDiffer.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/DocumentLineDiffer.java
index dc8cdcc..83187bf 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/DocumentLineDiffer.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/DocumentLineDiffer.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2015 IBM Corporation and others.
+ * Copyright (c) 2000, 2021 IBM Corporation and others.
  *
  * This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License 2.0
@@ -1482,7 +1482,7 @@
 			copy= new ArrayList<>(differences);
 		}
 		final Iterator<QuickDiffRangeDifference> iter= copy.iterator();
-		return new Iterator<Annotation>() {
+		return new Iterator<>() {
 
 			@Override
 			public void remove() {