CloneSet1498


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13210.988statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11364
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaElementContainmentAdapter.java
213100
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaElementContainmentAdapter.java
Clone Instance
1
Line Count
13
Source Line
64
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaElementContainmentAdapter.java

                if (checkContext(flags) && workingSetElement.equals(element)) {
                        return true;
                }
                if (checkIfChild(flags) && workingSetElement.equals(element.getParent())) {
                        return true;
                }
                if (checkIfDescendant(flags) && check(workingSetElement, element)) {
                        return true;
                }
                if (checkIfAncestor(flags) && check(element, workingSetElement)) {
                        return true;
                }
                return false;


Clone Instance
2
Line Count
13
Source Line
100
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaElementContainmentAdapter.java

                if (checkContext(flags) && workingSetResource.equals(element)) {
                        return true;
                }
                if (checkIfChild(flags) && workingSetResource.equals(element.getParent())) {
                        return true;
                }
                if (checkIfDescendant(flags) && check(workingSetResource, element)) {
                        return true;
                }
                if (checkIfAncestor(flags) && check(element, workingSetResource)) {
                        return true;
                }
                return false;


Clone AbstractionParameter Count: 1Parameter Bindings

if (checkContext(flags) && [[#variableb9c82780]].equals(element)) {
  return true;
}
if (checkIfChild(flags) && [[#variableb9c82780]].equals(element.getParent())) {
  return true;
}
if (checkIfDescendant(flags) && check( [[#variableb9c82780]], element)) {
  return true;
}
if (checkIfAncestor(flags) && check(element,  [[#variableb9c82780]])) {
  return true;
}
return false;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b9c82780]]
workingSetResource 
12[[#b9c82780]]
workingSetElement