Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 5 | 0.971 | statement_sequence[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 2759 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java |
2 | 18 | 2801 | 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); |
| ||||
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); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b2145980]] | final |
1 | 2 | [[#b2145980]] | |
2 | 1 | [[#b2145940]] | |
2 | 2 | [[#b2145940]] | final |
3 | 1 | [[#b1ab1740]] | packageDeclaration |
3 | 2 | [[#b1ab1740]] | importDeclaration |
4 | 1 | [[#b2144d40]] | length - 1 |
4 | 2 | [[#b2144d40]] | 0 |
5 | 1 | [[#5663aa20]] | compilationUnitDeclaration |
5 | 2 | [[#5663aa20]] | importReference |