CloneSet1297


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


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

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


Clone AbstractionParameter Count: 5Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#91bb5ac0]]
types 
12[[#91bb5ac0]]
memberTypes 
21[[#97ecb600]]
type 
22[[#97ecb600]]
memberType 
31[[#91bb5a00]]
accuracy 
32[[#91bb5a00]]
value 
41[[#97eca4e0]]
matchedUnitContainer 
42[[#97eca4e0]]
matchedClassContainer 
51[[#91bb5a20]]
null 
52[[#91bb5a20]]
enclosingElement