CloneSet1327


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11260.951class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111134
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ParentChecker.java
211147
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ParentChecker.java
Clone Instance
1
Line Count
11
Source Line
134
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ParentChecker.java

        private void removeJavaElementsDescendantsOfJavaElements() {
                List subElements = new ArrayList(3);
                for (int i = 0; i < fJavaElements.length; i++) {
                        IJavaElement subElement = fJavaElements[i];
                        for (int j = 0; j < fJavaElements.length; j++) {
                                IJavaElement superElement = fJavaElements[j];
                                if (isDescendantOf(subElement, superElement))
                                        subElements.add(subElement);
                        }
                }
                removeFromSetToDelete((IJavaElement[]) subElements.toArray(new IJavaElement[subElements.size()]));
        }


Clone Instance
2
Line Count
11
Source Line
147
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ParentChecker.java

        private void removeResourcesDescendantsOfResources() {
                List subResources = new ArrayList(3);
                for (int i = 0; i < fResources.length; i++) {
                        IResource subResource = fResources[i];
                        for (int j = 0; j < fResources.length; j++) {
                                IResource superResource = fResources[j];
                                if (isDescendantOf(subResource, superResource))
                                        subResources.add(subResource);
                        }
                }
                removeFromSetToDelete((IResource[]) subResources.toArray(new IResource[subResources.size()]));
        }


Clone AbstractionParameter Count: 6Parameter Bindings

private void [[#variable52e76080]]() {
  List  [[#variable52e76020]]= new ArrayList(3);
  for (int i = 0; i <  [[#variable9bb1dfe0]].length; i++) {
     [[#variable9bb1d020]]  [[#variable9bb1dda0]]= [[#variable9bb1dfe0]][i];
    for (int j = 0; j <  [[#variable9bb1dfe0]].length; j++) {
       [[#variable9bb1d020]]  [[#variable9bb1de20]]= [[#variable9bb1dfe0]][j];
      if (isDescendantOf( [[#variable9bb1dda0]],  [[#variable9bb1de20]]))
         [[#variable52e76020]].add( [[#variable9bb1dda0]]);
    }
  }
  removeFromSetToDelete(( [[#variable9bb1d020]][])  [[#variable52e76020]].toArray(new [[#variable9bb1d020]][ [[#variable52e76020]].size()]));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#52e76080]]
removeJavaElementsDescendantsOfJavaElements 
12[[#52e76080]]
removeResourcesDescendantsOfResources 
21[[#52e76020]]
subElements 
22[[#52e76020]]
subResources 
31[[#9bb1dfe0]]
fJavaElements 
32[[#9bb1dfe0]]
fResources 
41[[#9bb1d020]]
IJavaElement 
42[[#9bb1d020]]
IResource 
51[[#9bb1dda0]]
subElement 
52[[#9bb1dda0]]
subResource 
61[[#9bb1de20]]
superElement 
62[[#9bb1de20]]
superResource