CloneSet699


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17330.992class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117492
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringSearchEngine2.java
217519
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringSearchEngine2.java
317546
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringSearchEngine2.java
Clone Instance
1
Line Count
17
Source Line
492
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringSearchEngine2.java

        /**
         * Performs the search of referenced fields.
         * 
         * @param element the java element whose referenced fields have to be found
         * @param monitor the progress monitor, or <code>null</code>
         * @throws JavaModelException if an error occurs during search
         */
        public final void searchReferencedFields( final IJavaElement element, final IProgressMonitor monitor) throws JavaModelException {
                Assert.isNotNull(element);
                try {
                        monitor.beginTask("", 1); //$NON-NLS-1$
                        monitor.setTaskName(RefactoringCoreMessages.RefactoringSearchEngine_searching_referenced_fields);
                        try {
                                SearchEngine engine = null;
                                if (fOwner != null)
                                        engine = new SearchEngine(fOwner);
                                else
                                        engine = new SearchEngine();
                                engine.searchDeclarationsOfAccessedFields(element, getCollector(), new SubProgressMonitor(monitor, 1, SubProgressMonitor.SUPPRESS_SUBTASK_LABEL));
                        } catch (CoreException exception) {
                                throw new JavaModelException(exception);
                          }
                } finally {
                        monitor.done();
                  }
        }


Clone Instance
2
Line Count
17
Source Line
519
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringSearchEngine2.java

        /**
         * Performs the search of referenced methods.
         * 
         * @param element the java element whose referenced methods have to be found
         * @param monitor the progress monitor, or <code>null</code>
         * @throws JavaModelException if an error occurs during search
         */
        public final void searchReferencedMethods( final IJavaElement element, final IProgressMonitor monitor) throws JavaModelException {
                Assert.isNotNull(element);
                try {
                        monitor.beginTask("", 1); //$NON-NLS-1$
                        monitor.setTaskName(RefactoringCoreMessages.RefactoringSearchEngine_searching_referenced_methods);
                        try {
                                SearchEngine engine = null;
                                if (fOwner != null)
                                        engine = new SearchEngine(fOwner);
                                else
                                        engine = new SearchEngine();
                                engine.searchDeclarationsOfSentMessages(element, getCollector(), new SubProgressMonitor(monitor, 1, SubProgressMonitor.SUPPRESS_SUBTASK_LABEL));
                        } catch (CoreException exception) {
                                throw new JavaModelException(exception);
                          }
                } finally {
                        monitor.done();
                  }
        }


Clone Instance
3
Line Count
17
Source Line
546
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringSearchEngine2.java

        /**
         * Performs the search of referenced types.
         * 
         * @param element the java element whose referenced types have to be found
         * @param monitor the progress monitor, or <code>null</code>
         * @throws JavaModelException if an error occurs during search
         */
        public final void searchReferencedTypes( final IJavaElement element, final IProgressMonitor monitor) throws JavaModelException {
                Assert.isNotNull(element);
                try {
                        monitor.beginTask("", 1); //$NON-NLS-1$
                        monitor.setTaskName(RefactoringCoreMessages.RefactoringSearchEngine_searching_referenced_types);
                        try {
                                SearchEngine engine = null;
                                if (fOwner != null)
                                        engine = new SearchEngine(fOwner);
                                else
                                        engine = new SearchEngine();
                                engine.searchDeclarationsOfReferencedTypes(element, getCollector(), new SubProgressMonitor(monitor, 1, SubProgressMonitor.SUPPRESS_SUBTASK_LABEL));
                        } catch (CoreException exception) {
                                throw new JavaModelException(exception);
                          }
                } finally {
                        monitor.done();
                  }
        }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * Performs the search of referenced fields.
         * 
         * @param element the java element whose referenced fields have to be found
         * @param monitor the progress monitor, or <code>null</code>
         * @throws JavaModelException if an error occurs during search
         */
/**
         * Performs the search of referenced methods.
         * 
         * @param element the java element whose referenced methods have to be found
         * @param monitor the progress monitor, or <code>null</code>
         * @throws JavaModelException if an error occurs during search
         */
/**
         * Performs the search of referenced types.
         * 
         * @param element the java element whose referenced types have to be found
         * @param monitor the progress monitor, or <code>null</code>
         * @throws JavaModelException if an error occurs during search
         */
public final void [[#variableb30edd40]]( final IJavaElement element, final IProgressMonitor monitor) throws JavaModelException {
  Assert.isNotNull(element);
  try {
    monitor.beginTask("", 1); //$NON-NLS-1$
    monitor.setTaskName(RefactoringCoreMessages. [[#variableb30edca0]]);
    try {
      SearchEngine engine = null;
      if (fOwner != null)
        engine = new SearchEngine(fOwner);
      else
        engine = new SearchEngine();
      engine. [[#variableb30edba0]](element, getCollector(), new SubProgressMonitor(monitor, 1, SubProgressMonitor.SUPPRESS_SUBTASK_LABEL));
    }
    catch (CoreException exception) {
      throw new JavaModelException(exception);
    }
  }
  finally {
    monitor.done();
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b30edd40]]
searchReferencedFields 
12[[#b30edd40]]
searchReferencedMethods 
13[[#b30edd40]]
searchReferencedTypes 
21[[#b30edca0]]
RefactoringSearchEngine_searching_referenced_fields 
22[[#b30edca0]]
RefactoringSearchEngine_searching_referenced_methods 
23[[#b30edca0]]
RefactoringSearchEngine_searching_referenced_types 
31[[#b30edba0]]
searchDeclarationsOfAccessedFields 
32[[#b30edba0]]
searchDeclarationsOfSentMessages 
33[[#b30edba0]]
searchDeclarationsOfReferencedTypes