CloneSet1776


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9250.954statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19167
plugins/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/FileSystem.java
29284
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/NameEnvironment.java
Clone Instance
1
Line Count
9
Source Line
167
Source File
plugins/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/FileSystem.java

                for (int i = 0, length = this.classpaths.length; i < length; i++) {
                        NameEnvironmentAnswer answer = this.classpaths[i].findClass(typeName, qualifiedPackageName, qualifiedBinaryFileName);
                        if (answer != null) {
                                if ( !answer.ignoreIfBetter()) {
                                        if (answer.isBetter(suggestedAnswer))
                                                return answer;
                                }
                                else   if (answer.isBetter(suggestedAnswer))
                                        // remember suggestion and keep looking
                                        suggestedAnswer = answer;
                        }
                }


Clone Instance
2
Line Count
9
Source Line
284
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/NameEnvironment.java

        for (int i = 0, l = binaryLocations.length; i < l; i++) {
                NameEnvironmentAnswer answer = binaryLocations[i].findClass(binaryFileName, qPackageName, qBinaryFileName);
                if (answer != null) {
                        if ( !answer.ignoreIfBetter()) {
                                if (answer.isBetter(suggestedAnswer))
                                        return answer;
                        }
                        else   if (answer.isBetter(suggestedAnswer))
                                // remember suggestion and keep looking
                                suggestedAnswer = answer;
                }
        }


Clone AbstractionParameter Count: 5Parameter Bindings

for (int i = 0, [[#variableb84044e0]]= [[#variableb8404460]].length; i <  [[#variableb84044e0]]; i++) {
  NameEnvironmentAnswer answer = [[#variableb8404460]][i].findClass( [[#variableb8404400]],  [[#variableb8404360]],  [[#variableb8404300]]);
  if (answer != null) {
    if ( !answer.ignoreIfBetter()) {
      if (answer.isBetter(suggestedAnswer))
        return answer;
    }
    else
      if (answer.isBetter(suggestedAnswer))
        // remember suggestion and keep looking
        suggestedAnswer = answer;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b84044e0]]
l 
12[[#b84044e0]]
length 
21[[#b8404460]]
binaryLocations 
22[[#b8404460]]
this.classpaths 
31[[#b8404400]]
binaryFileName 
32[[#b8404400]]
typeName 
41[[#b8404360]]
qPackageName 
42[[#b8404360]]
qualifiedPackageName 
51[[#b8404300]]
qBinaryFileName 
52[[#b8404300]]
qualifiedBinaryFileName