Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 2 | 0.989 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 249 | plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/OrLocator.java |
2 | 10 | 260 | plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/OrLocator.java |
| ||||
public int resolveLevel(ASTNode node) { int level = IMPOSSIBLE_MATCH; for (int i = 0, length = this.patternLocators.length; i < length; i++) { int newLevel = this.patternLocators[i].resolveLevel(node); if (newLevel > level) { if (newLevel == ACCURATE_MATCH) return ACCURATE_MATCH; level = newLevel; // want to answer the stronger match } } return level; } |
| ||||
public int resolveLevel(Binding binding) { int level = IMPOSSIBLE_MATCH; for (int i = 0, length = this.patternLocators.length; i < length; i++) { int newLevel = this.patternLocators[i].resolveLevel(binding); if (newLevel > level) { if (newLevel == ACCURATE_MATCH) return ACCURATE_MATCH; level = newLevel; // want to answer the stronger match } } return level; } |
| |||
public int resolveLevel( [[#variable9df40220]] [[#variable9df401c0]]) { int level = IMPOSSIBLE_MATCH; for (int i = 0, length = this.patternLocators.length; i < length; i++) { int newLevel = this.patternLocators[i].resolveLevel( [[#variable9df401c0]]); if (newLevel > level) { if (newLevel == ACCURATE_MATCH) return ACCURATE_MATCH; level = newLevel; // want to answer the stronger match } } return level; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9df40220]] | ASTNode |
1 | 2 | [[#9df40220]] | Binding |
2 | 1 | [[#9df401c0]] | node |
2 | 2 | [[#9df401c0]] | binding |