Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 4 | 0.980 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 144 | plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MatchingNodeSet.java |
2 | 7 | 152 | plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MatchingNodeSet.java |
| ||||
public Object removePossibleMatch(ASTNode node) { long key = (((long) node.sourceStart) << 32) + node.sourceEnd; ASTNode existing = (ASTNode) this.possibleMatchingNodesKeys.get(key); if (existing == null) return null; this.possibleMatchingNodesKeys.put(key, null); return this.possibleMatchingNodesSet.remove(node); } |
| ||||
public Object removeTrustedMatch(ASTNode node) { long key = (((long) node.sourceStart) << 32) + node.sourceEnd; ASTNode existing = (ASTNode) this.matchingNodesKeys.get(key); if (existing == null) return null; this.matchingNodesKeys.put(key, null); return this.matchingNodes.removeKey(node); } |
| |||
public Object [[#variable522716c0]](ASTNode node) { long key = (((long) node.sourceStart) << 32) + node.sourceEnd; ASTNode existing = (ASTNode) this. [[#variable52271660]].get(key); if (existing == null) return null; this. [[#variable52271660]].put(key, null); return this. [[#variable52271600]]. [[#variable52271580]](node); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#522716c0]] | removePossibleMatch |
1 | 2 | [[#522716c0]] | removeTrustedMatch |
2 | 1 | [[#52271660]] | possibleMatchingNodesKeys |
2 | 2 | [[#52271660]] | matchingNodesKeys |
3 | 1 | [[#52271600]] | possibleMatchingNodesSet |
3 | 2 | [[#52271600]] | matchingNodes |
4 | 1 | [[#52271580]] | remove |
4 | 2 | [[#52271580]] | removeKey |