CloneSet1591


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11201.000statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11168
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/hierarchy/HierarchyBuilder.java
211152
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/hierarchy/IndexBasedHierarchyBuilder.java
Clone Instance
1
Line Count
11
Source Line
68
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/hierarchy/HierarchyBuilder.java

                if (unitToLookInside != null) {
                        int wcLength = workingCopies == null ? 0:  workingCopies.length;
                        if (wcLength == 0) {
                                unitsToLookInside = new org.eclipse.jdt.core.ICompilationUnit[] {
                                                                                                 unitToLookInside
                                                                                                };
                        }
                        else   {
                                unitsToLookInside = new org.eclipse.jdt.core.ICompilationUnit[wcLength + 1];
                                unitsToLookInside[0] = unitToLookInside;
                                System.arraycopy(workingCopies, 0, unitsToLookInside, 1, wcLength);
                        }
                }
                else   {
                        unitsToLookInside = workingCopies;
                }


Clone Instance
2
Line Count
11
Source Line
152
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/hierarchy/IndexBasedHierarchyBuilder.java

                        if (unitToLookInside != null) {
                                int wcLength = workingCopies == null ? 0:  workingCopies.length;
                                if (wcLength == 0) {
                                        unitsToLookInside = new org.eclipse.jdt.core.ICompilationUnit[] {
                                                                                                         unitToLookInside
                                                                                                        };
                                }
                                else   {
                                        unitsToLookInside = new org.eclipse.jdt.core.ICompilationUnit[wcLength + 1];
                                        unitsToLookInside[0] = unitToLookInside;
                                        System.arraycopy(workingCopies, 0, unitsToLookInside, 1, wcLength);
                                }
                        }
                        else   {
                                unitsToLookInside = workingCopies;
                        }


Clone AbstractionParameter Count: 0Parameter Bindings

if (unitToLookInside != null) {
  int wcLength = workingCopies == null ? 0: workingCopies.length;
  if (wcLength == 0) {
    unitsToLookInside = new org.eclipse.jdt.core.ICompilationUnit[] {
                                                                      unitToLookInside
                                                                    };
  }
  else {
    unitsToLookInside = new org.eclipse.jdt.core.ICompilationUnit[wcLength + 1];
    unitsToLookInside[0] = unitToLookInside;
    System.arraycopy(workingCopies, 0, unitsToLookInside, 1, wcLength);
  }
}
else {
  unitsToLookInside = workingCopies;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None