Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 5 | 0.954 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 167 | plugins/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/FileSystem.java |
2 | 9 | 284 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/NameEnvironment.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; } } |
| ||||
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; } } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b84044e0]] | l |
1 | 2 | [[#b84044e0]] | length |
2 | 1 | [[#b8404460]] | binaryLocations |
2 | 2 | [[#b8404460]] | this.classpaths |
3 | 1 | [[#b8404400]] | binaryFileName |
3 | 2 | [[#b8404400]] | typeName |
4 | 1 | [[#b8404360]] | qPackageName |
4 | 2 | [[#b8404360]] | qualifiedPackageName |
5 | 1 | [[#b8404300]] | qBinaryFileName |
5 | 2 | [[#b8404300]] | qualifiedBinaryFileName |