CloneSet1565


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11201.000statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111153
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/CompilationUnitScope.java
211310
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/CompilationUnitScope.java
Clone Instance
1
Line Count
11
Source Line
153
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/CompilationUnitScope.java

        int numberOfImports = numberOfStatements + 1;
        for (int i = 0; i < numberOfStatements; i++) {
                ImportReference importReference = referenceContext.imports[i];
                if (importReference.onDemand && CharOperation.equals(JAVA_LANG, importReference.tokens) && !importReference.isStatic()) {
                        numberOfImports--;
                        break;
                }
        }
        ImportBinding[] resolvedImports = new ImportBinding[numberOfImports];
        resolvedImports[0] = getDefaultImports()[0];
        int index = 1;


Clone Instance
2
Line Count
11
Source Line
310
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/CompilationUnitScope.java

        // allocate the import array, add java.lang.* by default
        int numberOfImports = numberOfStatements + 1;
        for (int i = 0; i < numberOfStatements; i++) {
                ImportReference importReference = referenceContext.imports[i];
                if (importReference.onDemand && CharOperation.equals(JAVA_LANG, importReference.tokens) && !importReference.isStatic()) {
                        numberOfImports--;
                        break;
                }
        }
        ImportBinding[] resolvedImports = new ImportBinding[numberOfImports];
        resolvedImports[0] = getDefaultImports()[0];
        int index = 1;


Clone AbstractionParameter Count: 0Parameter Bindings

// allocate the import array, add java.lang.* by default
int numberOfImports = numberOfStatements + 1;
for (int i = 0; i < numberOfStatements; i++) {
  ImportReference importReference = referenceContext.imports[i];
  if (importReference.onDemand && CharOperation.equals(JAVA_LANG, importReference.tokens) && !importReference.isStatic()) {
    numberOfImports--;
    break;
  }
}
ImportBinding[] resolvedImports = new ImportBinding[numberOfImports];
resolvedImports[0] = getDefaultImports()[0];
int index = 1;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None