CloneSet2312


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7240.980class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17144
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MatchingNodeSet.java
27152
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MatchingNodeSet.java
Clone Instance
1
Line Count
7
Source Line
144
Source File
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);
}


Clone Instance
2
Line Count
7
Source Line
152
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MatchingNodeSet.java

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);
}


Clone AbstractionParameter Count: 4Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#522716c0]]
removePossibleMatch 
12[[#522716c0]]
removeTrustedMatch 
21[[#52271660]]
possibleMatchingNodesKeys 
22[[#52271660]]
matchingNodesKeys 
31[[#52271600]]
possibleMatchingNodesSet 
32[[#52271600]]
matchingNodes 
41[[#52271580]]
remove 
42[[#52271580]]
removeKey