CloneSet135


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
45230.951statement_sequence[21]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1454815
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
2454872
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
Clone Instance
1
Line Count
45
Source Line
4815
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java

                final SimpleName firstToken = new SimpleName(this.ast);
                firstToken.internalSetIdentifier(new String(typeName[0]));
                firstToken.index = 1;
                int start0 = (int) (positions[0] >>> 32);
                int start = start0;
                int end = (int) (positions[0]&  0xffffffff);
                firstToken.setSourceRange(start, end - start + 1);
                final SimpleName secondToken = new SimpleName(this.ast);
                secondToken.internalSetIdentifier(new String(typeName[1]));
                secondToken.index = 2;
                start = (int) (positions[1] >>> 32);
                end = (int) (positions[1]&  0xffffffff);
                secondToken.setSourceRange(start, end - start + 1);
                QualifiedName qualifiedName = new QualifiedName(this.ast);
                qualifiedName.setQualifier(firstToken);
                qualifiedName.setName(secondToken);
                if (this.resolveBindings) {
                        recordNodes(qualifiedName, node);
                        recordPendingNameScopeResolution(qualifiedName);
                        recordNodes(firstToken, node);
                        recordNodes(secondToken, node);
                        recordPendingNameScopeResolution(firstToken);
                        recordPendingNameScopeResolution(secondToken);
                }
                qualifiedName.index = 2;
                qualifiedName.setSourceRange(start0, end - start0 + 1);
                SimpleName newPart = null;
                for (int i = 2; i < length; i++) {
                        newPart = new SimpleName(this.ast);
                        newPart.internalSetIdentifier(new String(typeName[i]));
                        newPart.index = i + 1;
                        start = (int) (positions[i] >>> 32);
                        end = (int) (positions[i]&  0xffffffff);
                        newPart.setSourceRange(start,  end - start + 1);
                        QualifiedName qualifiedName2 = new QualifiedName(this.ast);
                        qualifiedName2.setQualifier(qualifiedName);
                        qualifiedName2.setName(newPart);
                        qualifiedName = qualifiedName2;
                        qualifiedName.index = newPart.index;
                        qualifiedName.setSourceRange(start0, end - start0 + 1);
                        if (this.resolveBindings) {
                                recordNodes(qualifiedName, node);
                                recordNodes(newPart, node);
                                recordPendingNameScopeResolution(qualifiedName);
                                recordPendingNameScopeResolution(newPart);
                        }
                }


Clone Instance
2
Line Count
45
Source Line
4872
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java

                final SimpleName firstToken = new SimpleName(this.ast);
                firstToken.internalSetIdentifier(new String(typeName[0]));
                firstToken.index = 1;
                int start0 = (int) (positions[0] >>> 32);
                int start = start0;
                int end = (int) positions[0];
                firstToken.setSourceRange(start, end - start + 1);
                final SimpleName secondToken = new SimpleName(this.ast);
                secondToken.internalSetIdentifier(new String(typeName[1]));
                secondToken.index = 2;
                start = (int) (positions[1] >>> 32);
                end = (int) positions[1];
                secondToken.setSourceRange(start, end - start + 1);
                QualifiedName qualifiedName = new QualifiedName(this.ast);
                qualifiedName.setQualifier(firstToken);
                qualifiedName.setName(secondToken);
                if (this.resolveBindings) {
                        recordNodes(qualifiedName, node);
                        recordPendingNameScopeResolution(qualifiedName);
                        recordNodes(firstToken, node);
                        recordNodes(secondToken, node);
                        recordPendingNameScopeResolution(firstToken);
                        recordPendingNameScopeResolution(secondToken);
                }
                qualifiedName.index = 2;
                qualifiedName.setSourceRange(start0, end - start0 + 1);
                SimpleName newPart = null;
                for (int i = 2; i < length; i++) {
                        newPart = new SimpleName(this.ast);
                        newPart.internalSetIdentifier(new String(typeName[i]));
                        newPart.index = i + 1;
                        start = (int) (positions[i] >>> 32);
                        end = (int) positions[i];
                        newPart.setSourceRange(start,  end - start + 1);
                        QualifiedName qualifiedName2 = new QualifiedName(this.ast);
                        qualifiedName2.setQualifier(qualifiedName);
                        qualifiedName2.setName(newPart);
                        qualifiedName = qualifiedName2;
                        qualifiedName.index = newPart.index;
                        qualifiedName.setSourceRange(start0, end - start0 + 1);
                        if (this.resolveBindings) {
                                recordNodes(qualifiedName, node);
                                recordNodes(newPart, node);
                                recordPendingNameScopeResolution(qualifiedName);
                                recordPendingNameScopeResolution(newPart);
                        }
                }


Clone AbstractionParameter Count: 3Parameter Bindings

final SimpleName firstToken = new SimpleName(this.ast);
firstToken.internalSetIdentifier(new String(typeName[0]));
firstToken.index = 1;
int start0 = (int) (positions[0] >>> 32);
int start = start0;
int end = (int)  [[#variablec1b8f340]];
firstToken.setSourceRange(start, end - start + 1);
final SimpleName secondToken = new SimpleName(this.ast);
secondToken.internalSetIdentifier(new String(typeName[1]));
secondToken.index = 2;
start = (int) (positions[1] >>> 32);
end = (int)  [[#variablec1f5f2a0]];
secondToken.setSourceRange(start, end - start + 1);
QualifiedName qualifiedName = new QualifiedName(this.ast);
qualifiedName.setQualifier(firstToken);
qualifiedName.setName(secondToken);
if (this.resolveBindings) {
  recordNodes(qualifiedName, node);
  recordPendingNameScopeResolution(qualifiedName);
  recordNodes(firstToken, node);
  recordNodes(secondToken, node);
  recordPendingNameScopeResolution(firstToken);
  recordPendingNameScopeResolution(secondToken);
}
qualifiedName.index = 2;
qualifiedName.setSourceRange(start0, end - start0 + 1);
SimpleName newPart = null;
for (int i = 2; i < length; i++) {
  newPart = new SimpleName(this.ast);
  newPart.internalSetIdentifier(new String(typeName[i]));
  newPart.index = i + 1;
  start = (int) (positions[i] >>> 32);
  end = (int)  [[#variablec1b8f2c0]];
  newPart.setSourceRange(start, end - start + 1);
  QualifiedName qualifiedName2 = new QualifiedName(this.ast);
  qualifiedName2.setQualifier(qualifiedName);
  qualifiedName2.setName(newPart);
  qualifiedName = qualifiedName2;
  qualifiedName.index = newPart.index;
  qualifiedName.setSourceRange(start0, end - start0 + 1);
  if (this.resolveBindings) {
    recordNodes(qualifiedName, node);
    recordNodes(newPart, node);
    recordPendingNameScopeResolution(qualifiedName);
    recordPendingNameScopeResolution(newPart);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c1b8f340]]
positions[0] 
12[[#c1b8f340]]
(positions[0]&0xffffffff) 
21[[#c1f5f2a0]]
positions[1] 
22[[#c1f5f2a0]]
(positions[1]&0xffffffff) 
31[[#c1b8f2c0]]
positions[i] 
32[[#c1b8f2c0]]
(positions[i]&0xffffffff)