CloneSet2940


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8210.988statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18507
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ClassFile.java
28895
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CompilationUnit.java
Clone Instance
1
Line Count
8
Source Line
507
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ClassFile.java

        JavaModelManager.PerWorkingCopyInfo perWorkingCopyInfo =
                manager.getPerWorkingCopyInfo(workingCopy, false
                                                                /*don't create*/
                                                                ,                 true
                                                                                      /*record usage*/
                                                                                      ,                 null
                                                                                                            /*not used since don't create*/
                                                                                                            );
        if (perWorkingCopyInfo != null) {
                return perWorkingCopyInfo.getWorkingCopy(); // return existing handle instead of the one created above
        }
        BecomeWorkingCopyOperation op = new BecomeWorkingCopyOperation(workingCopy, null);
        op.runOperation(monitor);
        return workingCopy;


Clone Instance
2
Line Count
8
Source Line
895
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CompilationUnit.java

        JavaModelManager.PerWorkingCopyInfo perWorkingCopyInfo =
                manager.getPerWorkingCopyInfo(workingCopy, false
                                                                /*don't create*/
                                                                ,                 true
                                                                                      /*record usage*/
                                                                                      ,                 null
                                                                                                            /*not used since don't create*/
                                                                                                            );
        if (perWorkingCopyInfo != null) {
                return perWorkingCopyInfo.getWorkingCopy(); // return existing handle instead of the one created above
        }
        BecomeWorkingCopyOperation op = new BecomeWorkingCopyOperation(workingCopy, problemRequestor);
        op.runOperation(monitor);
        return workingCopy;


Clone AbstractionParameter Count: 1Parameter Bindings

JavaModelManager.PerWorkingCopyInfo perWorkingCopyInfo = manager.getPerWorkingCopyInfo(workingCopy, false
                                                                                                         /*don't create*/
                                                                                                         , true
                                                                                                               /*record usage*/
                                                                                                               , null
                                                                                                                     /*not used since don't create*/
                                                                                                                     );
if (perWorkingCopyInfo != null) {
  return perWorkingCopyInfo.getWorkingCopy(); // return existing handle instead of the one created above
}
BecomeWorkingCopyOperation op = new BecomeWorkingCopyOperation(workingCopy,  [[#variablea40279c0]]);
op.runOperation(monitor);
return workingCopy;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a40279c0]]
null 
12[[#a40279c0]]
problemRequestor