Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 5 | 0.969 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 2181 | plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java |
2 | 7 | 2446 | plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java |
| ||||
if (types != null) { for (int i = 0, l = types.length; i < l; i++) { if (nodeSet.matchingNodes.elementSize == 0) return; // reported all the matching nodes TypeDeclaration type = types[i]; Integer level = (Integer) nodeSet.matchingNodes.removeKey(type); int accuracy = (level != null && matchedUnitContainer) ? level.intValue(): -1; reportMatching(type, null, accuracy, nodeSet, 1); } } |
| ||||
if (memberTypes != null) { for (int i = 0, l = memberTypes.length; i < l; i++) { if (nodeSet.matchingNodes.elementSize == 0) return; // end as all matching nodes were reported TypeDeclaration memberType = memberTypes[i]; Integer level = (Integer) nodeSet.matchingNodes.removeKey(memberType); int value = (level != null && matchedClassContainer) ? level.intValue(): -1; reportMatching(memberType, enclosingElement, value, nodeSet, 1); } } |
| |||
if ( [[#variable91bb5ac0]]!= null) { for (int i = 0, l = [[#variable91bb5ac0]].length; i < l; i++) { if (nodeSet.matchingNodes.elementSize == 0) return; // reported all the matching nodes // end as all matching nodes were reported TypeDeclaration [[#variable97ecb600]]= [[#variable91bb5ac0]][i]; Integer level = (Integer) nodeSet.matchingNodes.removeKey( [[#variable97ecb600]]); int [[#variable91bb5a00]]= (level != null && [[#variable97eca4e0]]) ? level.intValue(): -1; reportMatching( [[#variable97ecb600]], [[#variable91bb5a20]], [[#variable91bb5a00]], nodeSet, 1); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#91bb5ac0]] | types |
1 | 2 | [[#91bb5ac0]] | memberTypes |
2 | 1 | [[#97ecb600]] | type |
2 | 2 | [[#97ecb600]] | memberType |
3 | 1 | [[#91bb5a00]] | accuracy |
3 | 2 | [[#91bb5a00]] | value |
4 | 1 | [[#97eca4e0]] | matchedUnitContainer |
4 | 2 | [[#97eca4e0]] | matchedClassContainer |
5 | 1 | [[#91bb5a20]] | null |
5 | 2 | [[#91bb5a20]] | enclosingElement |