| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 12 | 2 | 3 | 0.987 | switch_group |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 12 | 2425 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java |
| 2 | 12 | 2437 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java |
| ||||
case ASTNode.ENUM_DECLARATION:
switch (this.ast.apiLevel) {
case AST.JLS2_INTERNAL:
return createFakeEmptyStatement(statement);
case AST.JLS3:
final TypeDeclarationStatement typeDeclarationStatement = new TypeDeclarationStatement(this.ast);
typeDeclarationStatement.setDeclaration((EnumDeclaration) result);
AbstractTypeDeclaration typeDecl = typeDeclarationStatement.getDeclaration();
typeDeclarationStatement.setSourceRange(typeDecl.getStartPosition(), typeDecl.getLength());
return typeDeclarationStatement;
}
break;
|
| ||||
case ASTNode.ANNOTATION_TYPE_DECLARATION:
switch (this.ast.apiLevel) {
case AST.JLS2_INTERNAL:
return createFakeEmptyStatement(statement);
case AST.JLS3:
TypeDeclarationStatement typeDeclarationStatement = new TypeDeclarationStatement(this.ast);
typeDeclarationStatement.setDeclaration((AnnotationTypeDeclaration) result);
AbstractTypeDeclaration typeDecl = typeDeclarationStatement.getDeclaration();
typeDeclarationStatement.setSourceRange(typeDecl.getStartPosition(), typeDecl.getLength());
return typeDeclarationStatement;
}
break;
|
| |||
case ASTNode. [[#variable52829180]]:
switch (this.ast.apiLevel) {
case AST.JLS2_INTERNAL:
return createFakeEmptyStatement(statement);
case AST.JLS3:
[[#variable52829a80]]TypeDeclarationStatement typeDeclarationStatement = new TypeDeclarationStatement(this.ast);
typeDeclarationStatement.setDeclaration(( [[#variable528299e0]]) result);
AbstractTypeDeclaration typeDecl = typeDeclarationStatement.getDeclaration();
typeDeclarationStatement.setSourceRange(typeDecl.getStartPosition(), typeDecl.getLength());
return typeDeclarationStatement;
}
break;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#52829180]] | ENUM_DECLARATION |
| 1 | 2 | [[#52829180]] | ANNOTATION_TYPE_DECLARATION |
| 2 | 1 | [[#52829a80]] | final |
| 2 | 2 | [[#52829a80]] | |
| 3 | 1 | [[#528299e0]] | EnumDeclaration |
| 3 | 2 | [[#528299e0]] | AnnotationTypeDeclaration |