CloneSet2725


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6240.969executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1666
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/LevelTreeContentProvider.java
2675
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/LevelTreeContentProvider.java
Clone Instance
1
Line Count
6
Source Line
66
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/LevelTreeContentProvider.java

                                                            {
                        IJavaElement javaElement = (IJavaElement) possibleParent;
                        for (int j = fCurrentLevel; j < MAX_LEVEL + 1; j++) {
                                for (int i = 0; i < JAVA_ELEMENT_TYPES[j].length; i++) {
                                        if (javaElement.getElementType() == JAVA_ELEMENT_TYPES[j][i]) {
                                                return null;
                                        }
                                }
                        }
                                                            }


Clone Instance
2
Line Count
6
Source Line
75
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/LevelTreeContentProvider.java

                                                                {
                        IResource resource = (IResource) possibleParent;
                        for (int j = fCurrentLevel; j < MAX_LEVEL + 1; j++) {
                                for (int i = 0; i < RESOURCE_TYPES[j].length; i++) {
                                        if (resource.getType() == RESOURCE_TYPES[j][i]) {
                                                return null;
                                        }
                                }
                        }
                                                                }


Clone AbstractionParameter Count: 4Parameter Bindings

{
   [[#variable638093e0]]  [[#variable63809360]]= ( [[#variable638093e0]]) possibleParent;
  for (int j = fCurrentLevel; j < MAX_LEVEL + 1; j++) {
    for (int i = 0; i <  [[#variable638092e0]][j].length; i++) {
      if ( [[#variable63809360]]. [[#variable63809260]]() == [[#variable638092e0]][j][i]) {
        return null;
      }
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#638093e0]]
IJavaElement 
12[[#638093e0]]
IResource 
21[[#63809360]]
javaElement 
22[[#63809360]]
resource 
31[[#638092e0]]
JAVA_ELEMENT_TYPES 
32[[#638092e0]]
RESOURCE_TYPES 
41[[#63809260]]
getElementType 
42[[#63809260]]
getType