CloneSet2798


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9230.964statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19112
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/HierarchyLabelProvider.java
29201
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyContentProvider.java
Clone Instance
1
Line Count
9
Source Line
112
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/HierarchyLabelProvider.java

                IJavaElement parent = type.getAncestor(input.getElementType());
                if (input.getElementType() == IJavaElement.PACKAGE_FRAGMENT) {
                        if (parent == null || parent.getElementName().equals(input.getElementName())) {
                                return false;
                        }
                }
                else   if (input.equals(parent)) {
                        return false;
                       }
                return true;


Clone Instance
2
Line Count
9
Source Line
201
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyContentProvider.java

                IJavaElement parent = type.getAncestor(input.getElementType());
                if (inputType == IJavaElement.PACKAGE_FRAGMENT) {
                        if (parent == null || parent.getElementName().equals(input.getElementName())) {
                                return true;
                        }
                }
                else   if (input.equals(parent)) {
                        return true;
                       }
                return false;


Clone AbstractionParameter Count: 3Parameter Bindings

IJavaElement parent = type.getAncestor(input.getElementType());
if ( [[#variable9654c640]]== IJavaElement.PACKAGE_FRAGMENT) {
  if (parent == null || parent.getElementName().equals(input.getElementName())) {
    return [[#variablea465dd80]];
  }
}
else
  if (input.equals(parent)) {
    return [[#variablea465dd80]];
  }
return [[#variable519b1640]];
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9654c640]]
inputType 
12[[#9654c640]]
input.getElementType() 
21[[#a465dd80]]
true 
22[[#a465dd80]]
false 
31[[#519b1640]]
false 
32[[#519b1640]]
true