CloneSet614


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18250.971statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1182759
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
2182801
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
Clone Instance
1
Line Count
18
Source Line
2759
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java

                final char[][] tokens = importReference.tokens;
                int length = importReference.tokens.length;
                final long[] positions = importReference.sourcePositions;
                if (length > 1) {
                        importDeclaration.setName(setQualifiedNameNameAndSourceRanges(tokens, positions, importReference));
                }
                else   {
                        final SimpleName name = new SimpleName(this.ast);
                        name.internalSetIdentifier(new String(tokens[0]));
                        final int start = (int) (positions[0] >>> 32);
                        final int end = (int) (positions[0]&  0xffffffff);
                        name.setSourceRange(start, end - start + 1);
                        name.index = 1;
                        importDeclaration.setName(name);
                        if (this.resolveBindings) {
                                recordNodes(name, importReference);
                        }
                }
                importDeclaration.setSourceRange(importReference.declarationSourceStart, importReference.declarationEnd - importReference.declarationSourceStart + 1);


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

                final char[][] tokens = importReference.tokens;
                final int length = importReference.tokens.length;
                long[] positions = importReference.sourcePositions;
                if (length > 1) {
                        packageDeclaration.setName(setQualifiedNameNameAndSourceRanges(tokens, positions, importReference));
                }
                else   {
                        final SimpleName name = new SimpleName(this.ast);
                        name.internalSetIdentifier(new String(tokens[0]));
                        int start = (int) (positions[0] >>> 32);
                        int end = (int) (positions[length - 1]&  0xffffffff);
                        name.setSourceRange(start, end - start + 1);
                        name.index = 1;
                        packageDeclaration.setName(name);
                        if (this.resolveBindings) {
                                recordNodes(name, compilationUnitDeclaration);
                        }
                }
                packageDeclaration.setSourceRange(importReference.declarationSourceStart, importReference.declarationEnd - importReference.declarationSourceStart + 1);


Clone AbstractionParameter Count: 5Parameter Bindings

final char[][] tokens = importReference.tokens;
 [[#variableb2145980]]int length = importReference.tokens.length;
 [[#variableb2145940]]long[] positions = importReference.sourcePositions;
if (length > 1) {
   [[#variableb1ab1740]].setName(setQualifiedNameNameAndSourceRanges(tokens, positions, importReference));
}
else {
  final SimpleName name = new SimpleName(this.ast);
  name.internalSetIdentifier(new String(tokens[0]));
   [[#variableb2145940]]int start = (int) (positions[0] >>> 32);
   [[#variableb2145940]]int end = (int) (positions[ [[#variableb2144d40]]]&0xffffffff);
  name.setSourceRange(start, end - start + 1);
  name.index = 1;
   [[#variableb1ab1740]].setName(name);
  if (this.resolveBindings) {
    recordNodes(name,  [[#variable5663aa20]]);
  }
}
 [[#variableb1ab1740]].setSourceRange(importReference.declarationSourceStart, importReference.declarationEnd - importReference.declarationSourceStart + 1);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b2145980]]
final 
12[[#b2145980]]
21[[#b2145940]]
22[[#b2145940]]
final 
31[[#b1ab1740]]
packageDeclaration 
32[[#b1ab1740]]
importDeclaration 
41[[#b2144d40]]
length - 1 
42[[#b2144d40]]
0 
51[[#5663aa20]]
compilationUnitDeclaration 
52[[#5663aa20]]
importReference