diff --git a/bundles/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/folding/IndentFoldingStrategy.java b/bundles/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/folding/IndentFoldingStrategy.java index 208434286b0..1c84bf6067c 100644 --- a/bundles/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/folding/IndentFoldingStrategy.java +++ b/bundles/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/folding/IndentFoldingStrategy.java @@ -489,7 +489,7 @@ protected void markInvalidAnnotationsForDeletion(DirtyRegion dirtyRegion, List getAllAnnotationsForDeletion(Iterator iter) { + private static List getAllAnnotationsForDeletion(Iterator iter) { List deletions = new ArrayList<>(); if (iter != null) { while (iter.hasNext()) { diff --git a/tests/org.eclipse.jface.tests/src/org/eclipse/jface/tests/viewers/Bug566936TreeViewerTest.java b/tests/org.eclipse.jface.tests/src/org/eclipse/jface/tests/viewers/Bug566936TreeViewerTest.java index cfdac78a20d..570713fcc42 100644 --- a/tests/org.eclipse.jface.tests/src/org/eclipse/jface/tests/viewers/Bug566936TreeViewerTest.java +++ b/tests/org.eclipse.jface.tests/src/org/eclipse/jface/tests/viewers/Bug566936TreeViewerTest.java @@ -188,7 +188,7 @@ private void createColumnFor(TreeViewer v, String label, int columnIndex) { viewerColumn.setLabelProvider(new MyColumnLabelProvider(v.getTree(), columnIndex)); } - private List createModel() { + private static List createModel() { List elements = new ArrayList<>(); for (int i = 0; i < 10; i++) {