From c57e4131c7ad43e85f78f7957ea83fe1a59bef89 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Tue, 19 Apr 2011 04:38:18 +0000 Subject: [PATCH] Comment adjustments. --- .../ui/refactoring/implementmethod/InsertLocation.java | 1 - .../MethodDefinitionInsertLocationFinder.java | 7 +++---- .../internal/ui/refactoring/utils/DefinitionFinder.java | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/implementmethod/InsertLocation.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/implementmethod/InsertLocation.java index 42b763a1f20..50fdb3519fc 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/implementmethod/InsertLocation.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/implementmethod/InsertLocation.java @@ -22,7 +22,6 @@ import org.eclipse.cdt.core.model.ITranslationUnit; /** * Is returned when using the find method of the MethodDefinitionInsertLocationFinder. * Contains all the information needed to insert at the correct position. - * This class is intended as a replacement for InsertLocation. * * @author Lukas Felber */ diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/implementmethod/MethodDefinitionInsertLocationFinder.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/implementmethod/MethodDefinitionInsertLocationFinder.java index 8bb794931a9..2430e7b07b8 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/implementmethod/MethodDefinitionInsertLocationFinder.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/implementmethod/MethodDefinitionInsertLocationFinder.java @@ -41,15 +41,14 @@ import org.eclipse.cdt.internal.ui.refactoring.utils.NodeHelper; /** * Finds the information that are needed to tell where a method definition of a certain * method declaration should be inserted. - * This class is intended as a replacement for MethodDefinitionInsertLocationFinder. * * @author Mirko Stocker, Lukas Felber */ public class MethodDefinitionInsertLocationFinder { - // We cache DefinitionFinder2.getDefinition results because refactorings like Implement Method + // We cache DefinitionFinder.getDefinition results because refactorings like Implement Method // might want to find multiple insert locations in the same translation unit. This prevents - // many redundant calls to DefinitionFinder2.getDefinition and speeds up the process quite - //a bit. Unfortunately, this has the minor side-effect or having to instantiate this class. + // many redundant calls to DefinitionFinder.getDefinition and speeds up the process quite + // a bit. Unfortunately, this has the minor side-effect or having to instantiate this class. Map cachedDeclarationToDefinition = new HashMap(); diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/utils/DefinitionFinder.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/utils/DefinitionFinder.java index 3f2b19739c0..f74cb2193df 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/utils/DefinitionFinder.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/utils/DefinitionFinder.java @@ -39,7 +39,7 @@ import org.eclipse.cdt.internal.ui.refactoring.RefactoringASTCache; import org.eclipse.cdt.internal.ui.util.EditorUtility; /** - * Helper class to find definitions. This class is intended as a replacement for DefinitionFinder. + * Helper class for finding definitions. */ public class DefinitionFinder {