Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wolf2019-05-23 12:56:23 -0400
committerMichael Keppler2019-05-25 03:04:43 -0400
commit325fbb6ba11e793409a0834d6e4b98b772c9e307 (patch)
tree90da1a56b6a3201c2076d166795ca26adb1d0b05
parent4334109a7e8e97a87951023f47312a0aac49c9a8 (diff)
downloadegit-325fbb6ba11e793409a0834d6e4b98b772c9e307.tar.gz
egit-325fbb6ba11e793409a0834d6e4b98b772c9e307.tar.xz
egit-325fbb6ba11e793409a0834d6e4b98b772c9e307.zip
Minor cleanup in SpellcheckableMessageArea (generics)
MarkerAnnotationPreferences got generified in Neon.0. Change-Id: I442f5465d419d4e8e292fc1f4ab55767d933461f Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/SpellcheckableMessageArea.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/SpellcheckableMessageArea.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/SpellcheckableMessageArea.java
index 8d7810e86..35719cd54 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/SpellcheckableMessageArea.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/SpellcheckableMessageArea.java
@@ -781,11 +781,10 @@ public class SpellcheckableMessageArea extends Composite {
final SourceViewerDecorationSupport support = new SourceViewerDecorationSupport(
sourceViewer, null, annotationAccess, textColors);
- List annotationPreferences = new MarkerAnnotationPreferences()
- .getAnnotationPreferences();
- Iterator e = annotationPreferences.iterator();
- while (e.hasNext())
- support.setAnnotationPreference((AnnotationPreference) e.next());
+ List<AnnotationPreference> annotationPreferences = new MarkerAnnotationPreferences()
+ .getAnnotationPreferences();
+ annotationPreferences.iterator()
+ .forEachRemaining(p -> support.setAnnotationPreference(p));
support.install(EditorsUI.getPreferenceStore());
return support;

Back to the top