CloneSet7278


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5220.980executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15167
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ResourceToItemsMapper.java
24532
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java
Clone Instance
1
Line Count
5
Source Line
167
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ResourceToItemsMapper.java

                                         {
                                ICompilationUnit cu = (ICompilationUnit) elem.getAncestor(IJavaElement.COMPILATION_UNIT);
                                if (cu != null) {
                                        // elements in compilation units are mapped to the underlying resource of the original cu
                                        res = cu.getResource();
                                }
                                         }


Clone Instance
2
Line Count
4
Source Line
532
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java

                               {
                                ICompilationUnit cu = (ICompilationUnit) elem.getAncestor(IJavaElement.COMPILATION_UNIT);
                                if (cu != null) {
                                        enclosingType = cu.findPrimaryType();
                                }
                               }


Clone AbstractionParameter Count: 2Parameter Bindings

{
  ICompilationUnit cu = (ICompilationUnit) elem.getAncestor(IJavaElement.COMPILATION_UNIT);
  if (cu != null) {
     [[#variable576559a0]]= cu. [[#variable57655940]]();
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#576559a0]]
// elements in compilation units are mapped to the underlying resource of the original cu
res 
12[[#576559a0]]
enclosingType 
21[[#57655940]]
getResource 
22[[#57655940]]
findPrimaryType