Cosmetics.
Change-Id: Ib7d0ac38f920fd16f73c4f1c6aef287078978704
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
diff --git a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/AnnotationExpansionControl.java b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/AnnotationExpansionControl.java
index 21d3db3..ca8fc8c 100644
--- a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/AnnotationExpansionControl.java
+++ b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/AnnotationExpansionControl.java
@@ -242,15 +242,6 @@
// fInput.fAnnotations[0])
item.defaultSelected();
}
-
- /*
- * @see
- * org.eclipse.swt.events.MouseAdapter#mouseDown(org.eclipse.swt.events.
- * MouseEvent)
- */
- // public void mouseDown(MouseEvent e) {
- // super.mouseDown(e);
- // }
}
/**
@@ -300,8 +291,6 @@
}
/**
- *
- *
* @since 3.0
*/
public class LinearLayouter {
@@ -367,9 +356,6 @@
*/
private final class HoverManager extends AbstractInformationControlManager {
- /**
- *
- */
public HoverManager() {
super(parent -> new DefaultInformationControl(parent));
@@ -756,16 +742,17 @@
}
// create modified styles (with background)
- List shadedRanges = new ArrayList(undoRanges.size());
- for (Iterator it = undoRanges.iterator(); it.hasNext();) {
- StyleRange range = (StyleRange) ((StyleRange) it.next()).clone();
+ List<StyleRange> shadedRanges = new ArrayList<>(undoRanges.size());
+ for (Iterator<StyleRange> it = undoRanges.iterator(); it.hasNext();) {
+ StyleRange range = (StyleRange) it.next().clone();
shadedRanges.add(range);
range.background = getHighlightColor(disp);
}
// set the ranges one by one
- for (Iterator iter = shadedRanges.iterator(); iter.hasNext();) {
- text.setStyleRange((StyleRange) iter.next());
+ for (Iterator<StyleRange> iter = shadedRanges.iterator(); iter
+ .hasNext();) {
+ text.setStyleRange(iter.next());
}