CloneSet637


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17201.000statement_sequence[13]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117252
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/InlineMethodRefactoring.java
217342
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ReplaceInvocationsRefactoring.java
Clone Instance
1
Line Count
17
Source Line
252
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/InlineMethodRefactoring.java

                fSourceProvider.initialize();
                fTargetProvider.initialize();
                pm.setTaskName(RefactoringCoreMessages.InlineMethodRefactoring_searching);
                RefactoringStatus searchStatus = new RefactoringStatus();
                ICompilationUnit[] units = fTargetProvider.getAffectedCompilationUnits(searchStatus, new SubProgressMonitor(pm, 1));
                if (searchStatus.hasFatalError()) {
                        result.merge(searchStatus);
                        return result;
                }
                IFile[] filesToBeModified = getFilesToBeModified(units);
                result.merge(Checks.validateModifiesFiles(filesToBeModified, getValidationContext()));
                if (result.hasFatalError())
                        return result;
                result.merge(ResourceChangeChecker.checkFilesToBeChanged(filesToBeModified, new SubProgressMonitor(pm, 1)));
                checkOverridden(result, new SubProgressMonitor(pm, 4));
                IProgressMonitor sub = new SubProgressMonitor(pm, 15);
                sub.beginTask("", units.length * 3); //$NON-NLS-1$


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

                fSourceProvider.initialize();
                fTargetProvider.initialize();
                pm.setTaskName(RefactoringCoreMessages.InlineMethodRefactoring_searching);
                RefactoringStatus searchStatus = new RefactoringStatus();
                ICompilationUnit[] units = fTargetProvider.getAffectedCompilationUnits(searchStatus, new SubProgressMonitor(pm, 1));
                if (searchStatus.hasFatalError()) {
                        result.merge(searchStatus);
                        return result;
                }
                IFile[] filesToBeModified = getFilesToBeModified(units);
                result.merge(Checks.validateModifiesFiles(filesToBeModified, getValidationContext()));
                if (result.hasFatalError())
                        return result;
                result.merge(ResourceChangeChecker.checkFilesToBeChanged(filesToBeModified, new SubProgressMonitor(pm, 1)));
                checkOverridden(result, new SubProgressMonitor(pm, 4));
                IProgressMonitor sub = new SubProgressMonitor(pm, 15);
                sub.beginTask("", units.length * 3); //$NON-NLS-1$


Clone AbstractionParameter Count: 0Parameter Bindings

fSourceProvider.initialize();
fTargetProvider.initialize();
pm.setTaskName(RefactoringCoreMessages.InlineMethodRefactoring_searching);
RefactoringStatus searchStatus = new RefactoringStatus();
ICompilationUnit[] units = fTargetProvider.getAffectedCompilationUnits(searchStatus, new SubProgressMonitor(pm, 1));
if (searchStatus.hasFatalError()) {
  result.merge(searchStatus);
  return result;
}
IFile[] filesToBeModified = getFilesToBeModified(units);
result.merge(Checks.validateModifiesFiles(filesToBeModified, getValidationContext()));
if (result.hasFatalError())
  return result;
result.merge(ResourceChangeChecker.checkFilesToBeChanged(filesToBeModified, new SubProgressMonitor(pm, 1)));
checkOverridden(result, new SubProgressMonitor(pm, 4));
IProgressMonitor sub = new SubProgressMonitor(pm, 15);
sub.beginTask("", units.length * 3); //$NON-NLS-1$
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None