diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/IndentActionTest.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/IndentActionTest.java index 82a202307d5..3159a8fd978 100644 --- a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/IndentActionTest.java +++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/IndentActionTest.java @@ -45,7 +45,6 @@ public class IndentActionTest extends TestCase { } protected static class IndentTestSetup extends TestSetup { - private ICProject fCProject; public IndentTestSetup(Test test) { @@ -77,9 +76,6 @@ public class IndentActionTest extends TestCase { private SourceViewer fSourceViewer; private IDocument fDocument; - /* - * @see junit.framework.TestCase#setUp() - */ @Override protected void setUp() throws Exception { String filename= createFileName("Before"); @@ -88,9 +84,6 @@ public class IndentActionTest extends TestCase { fDocument= fSourceViewer.getDocument(); } - /* - * @see junit.framework.TestCase#tearDown() - */ @Override protected void tearDown() throws Exception { EditorTestHelper.closeEditor(fEditor); diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/actions/IndentAction.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/actions/IndentAction.java index 49ddef1832c..e407201dda5 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/actions/IndentAction.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/actions/IndentAction.java @@ -62,7 +62,6 @@ import org.eclipse.cdt.internal.ui.util.EditorUtility; * @see org.eclipse.cdt.internal.ui.text.CIndenter */ public class IndentAction extends TextEditorAction { - /** The caret offset after an indent operation. */ private int fCaretOffset; @@ -85,12 +84,9 @@ public class IndentAction extends TextEditorAction { fIsTabAction= isTabAction; } - /* - * @see org.eclipse.jface.action.Action#run() - */ @Override public void run() { - // update has been called by the framework + // Update has been called by the framework if (!isEnabled() || !validateEditorInputState()) return; @@ -119,7 +115,7 @@ public class IndentAction extends TextEditorAction { Runnable runnable= new Runnable() { @Override public void run() { - IRewriteTarget target= (IRewriteTarget)getTextEditor().getAdapter(IRewriteTarget.class); + IRewriteTarget target= (IRewriteTarget) getTextEditor().getAdapter(IRewriteTarget.class); if (target != null) target.beginCompoundChange(); diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CIndenter.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CIndenter.java index b7662fd085c..41a01d7b070 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CIndenter.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CIndenter.java @@ -887,7 +887,7 @@ public final class CIndenter { */ public int findReferencePosition(int offset, boolean danglingElse, boolean matchBrace, boolean matchParen, boolean matchCase, boolean matchAccessSpecifier) { - fIndent= 0; // the indentation modification + fIndent= 0; // The indentation modification fAlign= CHeuristicScanner.NOT_FOUND; fPosition= offset;