CloneSet1955


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11210.993statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111677
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/Checks.java
211695
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/Checks.java
Clone Instance
1
Line Count
11
Source Line
677
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/Checks.java

                IStatus status = Resources.checkInSync(filesToModify);
                if ( !status.isOK())
                        result.merge(RefactoringStatus.create(status));
                status = Resources.makeCommittable(filesToModify, context);
                if ( !status.isOK()) {
                        result.merge(RefactoringStatus.create(status));
                        if ( !result.hasFatalError()) {
                                result.addFatalError(RefactoringCoreMessages.Checks_validateEdit);
                        }
                }
                return result;


Clone Instance
2
Line Count
11
Source Line
695
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/Checks.java

                IStatus status = Resources.checkInSync(resource);
                if ( !status.isOK())
                        result.merge(RefactoringStatus.create(status));
                status = Resources.makeCommittable(resource, context);
                if ( !status.isOK()) {
                        result.merge(RefactoringStatus.create(status));
                        if ( !result.hasFatalError()) {
                                result.addFatalError(RefactoringCoreMessages.Checks_validateEdit);
                        }
                }
                return result;


Clone AbstractionParameter Count: 1Parameter Bindings

IStatus status = Resources.checkInSync( [[#variableb3574ae0]]);
if ( !status.isOK())
  result.merge(RefactoringStatus.create(status));
status = Resources.makeCommittable( [[#variableb3574ae0]], context);
if ( !status.isOK()) {
  result.merge(RefactoringStatus.create(status));
  if ( !result.hasFatalError()) {
    result.addFatalError(RefactoringCoreMessages.Checks_validateEdit);
  }
}
return result;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b3574ae0]]
filesToModify 
12[[#b3574ae0]]
resource