CloneSet2054


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5320.967statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15245
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/HierarchyInformationControl.java
25166
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/util/OpenTypeHierarchyUtil.java
35254
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenTypeHierarchyAction.java
Clone Instance
1
Line Count
5
Source Line
245
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/HierarchyInformationControl.java

                                        IImportDeclaration decl = (IImportDeclaration) elem;
                                        if (decl.isOnDemand()) {
                                                input = JavaModelUtil.findTypeContainer(decl.getJavaProject(), Signature.getQualifier(decl.getElementName()));
                                        }
                                        else   {
                                                input = decl.getJavaProject().findType(decl.getElementName());
                                        }


Clone Instance
2
Line Count
5
Source Line
166
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/util/OpenTypeHierarchyUtil.java

                                        IImportDeclaration decl = (IImportDeclaration) elem;
                                        if (decl.isOnDemand()) {
                                                elem = JavaModelUtil.findTypeContainer(elem.getJavaProject(), Signature.getQualifier(elem.getElementName()));
                                        }
                                        else   {
                                                elem = elem.getJavaProject().findType(elem.getElementName());
                                        }


Clone Instance
3
Line Count
5
Source Line
254
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenTypeHierarchyAction.java

                                        IImportDeclaration decl = (IImportDeclaration) elem;
                                        if (decl.isOnDemand()) {
                                                elem = JavaModelUtil.findTypeContainer(elem.getJavaProject(), Signature.getQualifier(elem.getElementName()));
                                        }
                                        else   {
                                                elem = elem.getJavaProject().findType(elem.getElementName());
                                        }


Clone AbstractionParameter Count: 2Parameter Bindings

IImportDeclaration decl = (IImportDeclaration) elem;
if (decl.isOnDemand()) {
   [[#variableb8eed520]]= JavaModelUtil.findTypeContainer( [[#variableb8eedf80]].getJavaProject(), Signature.getQualifier( [[#variableb8eedf80]].getElementName()));
}
else {
   [[#variableb8eed520]]= [[#variableb8eedf80]].getJavaProject().findType( [[#variableb8eedf80]].getElementName());
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b8eed520]]
elem 
12[[#b8eed520]]
input 
13[[#b8eed520]]
elem 
21[[#b8eedf80]]
elem 
22[[#b8eedf80]]
decl 
23[[#b8eedf80]]
elem