CloneSet5296


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5201.000statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15189
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CommitWorkingCopyOperation.java
25146
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CreateCompilationUnitOperation.java
Clone Instance
1
Line Count
5
Source Line
189
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CommitWorkingCopyOperation.java

                IWorkspace workspace = resource.getWorkspace();
                if (resource.exists()) {
                        return workspace.getRuleFactory().modifyRule(resource);
                }
                else   {
                        return workspace.getRuleFactory().createRule(resource);
                }


Clone Instance
2
Line Count
5
Source Line
146
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CreateCompilationUnitOperation.java

        IWorkspace workspace = resource.getWorkspace();
        if (resource.exists()) {
                return workspace.getRuleFactory().modifyRule(resource);
        }
        else   {
                return workspace.getRuleFactory().createRule(resource);
        }


Clone AbstractionParameter Count: 0Parameter Bindings

IWorkspace workspace = resource.getWorkspace();
if (resource.exists()) {
  return workspace.getRuleFactory().modifyRule(resource);
}
else {
  return workspace.getRuleFactory().createRule(resource);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None