CloneSet4343


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8210.987class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1879
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaElementContainmentAdapter.java
28115
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaElementContainmentAdapter.java
Clone Instance
1
Line Count
8
Source Line
79
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaElementContainmentAdapter.java

        private boolean check(IJavaElement ancestor, IJavaElement descendent) {
                descendent = descendent.getParent();
                while (descendent != null) {
                        if (ancestor.equals(descendent))
                                return true;
                        descendent = descendent.getParent();
                }
                return false;
        }


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

        private boolean check(IResource ancestor, IResource descendent) {
                descendent = descendent.getParent();
                while (descendent != null) {
                        if (ancestor.equals(descendent))
                                return true;
                        descendent = descendent.getParent();
                }
                return false;
        }


Clone AbstractionParameter Count: 1Parameter Bindings

private boolean check( [[#variable57c81f20]] ancestor, [[#variable57c81f20]] descendent) {
  descendent = descendent.getParent();
  while (descendent != null) {
    if (ancestor.equals(descendent))
      return true;
    descendent = descendent.getParent();
  }
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#57c81f20]]
IJavaElement 
12[[#57c81f20]]
IResource