diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/ASTProvider.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/ASTProvider.java index 61eba01c23a..2c42eacc4ed 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/ASTProvider.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/ASTProvider.java @@ -65,7 +65,7 @@ public final class ASTProvider { /** * Wait flag indicating that a client requesting an AST - * wants to wait until an AST is ready. If the translation unit is not open no ast will + * wants to wait until an AST is ready. If the translation unit is not open no AST will * be provided. *
* If not yet cached and if the translation unit is open, an AST will be created by @@ -77,7 +77,7 @@ public final class ASTProvider { /** * Wait flag indicating that a client requesting an AST * only wants to wait for the shared AST of the active editor. - * If the translation unit is not open no ast will be provided. + * If the translation unit is not open no AST will be provided. *
* No AST will be created by the AST provider. *
@@ -201,7 +201,7 @@ public final class ASTProvider { } private boolean isActiveEditor(IWorkbenchPart part) { - return part != null && (part == fActiveEditor); + return part != null && part == fActiveEditor; } private boolean isCEditor(IWorkbenchPartReference ref) { @@ -324,13 +324,13 @@ public final class ASTProvider { if (cElement == null) return; Assert.isTrue(cElement instanceof ITranslationUnit); - fCache.reconciled(ast, (ITranslationUnit)cElement); + fCache.reconciled(ast, (ITranslationUnit) cElement); } public IStatus runOnAST(ICElement cElement, WAIT_FLAG waitFlag, IProgressMonitor monitor, ASTCache.ASTRunnable astRunnable) { Assert.isTrue(cElement instanceof ITranslationUnit); - final ITranslationUnit tu = (ITranslationUnit)cElement; + final ITranslationUnit tu = (ITranslationUnit) cElement; if (!tu.isOpen()) return Status.CANCEL_STATUS; diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/text/doctools/DefaultMultilineCommentAutoEditStrategy.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/text/doctools/DefaultMultilineCommentAutoEditStrategy.java index 70e0ba47d23..959eea84270 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/text/doctools/DefaultMultilineCommentAutoEditStrategy.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/text/doctools/DefaultMultilineCommentAutoEditStrategy.java @@ -333,7 +333,7 @@ public class DefaultMultilineCommentAutoEditStrategy implements IAutoEditStrateg StringBuilder result= new StringBuilder(); BufferedReader br= new BufferedReader(new StringReader(buffer.toString())); try { - for(String line= br.readLine(); line != null; line= br.readLine()) { + for (String line= br.readLine(); line != null; line= br.readLine()) { result.append(indent).append(line).append(lineDelim); } } catch(IOException ioe) {