Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
52 | 2 | 1 | 0.965 | statement_sequence[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 52 | 172 | plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java |
2 | 52 | 942 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java |
| ||||
if (node instanceof AbstractMethodDeclaration) { AbstractMethodDeclaration method = (AbstractMethodDeclaration) node; if (method.declarationSourceEnd == 0) { element = element.add(method, 0); lastCheckPoint = method.bodyStart; } else { element = element.add(method, 0); lastCheckPoint = method.declarationSourceEnd + 1; } continue ; } if (node instanceof Initializer) { Initializer initializer = (Initializer) node; if (initializer.declarationSourceEnd == 0) { element = element.add(initializer, 1); lastCheckPoint = initializer.sourceStart; } else { element = element.add(initializer, 0); lastCheckPoint = initializer.declarationSourceEnd + 1; } continue ; } if (node instanceof FieldDeclaration) { FieldDeclaration field = (FieldDeclaration) node; if (field.declarationSourceEnd == 0) { element = element.add(field, 0); if (field.initialization == null) { lastCheckPoint = field.sourceEnd + 1; } else { lastCheckPoint = field.initialization.sourceEnd + 1; } } else { element = element.add(field, 0); lastCheckPoint = field.declarationSourceEnd + 1; } continue ; } if (node instanceof TypeDeclaration) { TypeDeclaration type = (TypeDeclaration) node; if (type.declarationSourceEnd == 0) { element = element.add(type, 0); lastCheckPoint = type.bodyStart; } else { element = element.add(type, 0); lastCheckPoint = type.declarationSourceEnd + 1; } continue ; } if (node instanceof ImportReference) { ImportReference importRef = (ImportReference) node; element = element.add(importRef, 0); lastCheckPoint = importRef.declarationSourceEnd + 1; } |
| ||||
if (node instanceof AbstractMethodDeclaration) { AbstractMethodDeclaration method = (AbstractMethodDeclaration) node; if (method.declarationSourceEnd == 0) { element = element.add(method, 0); this.lastCheckPoint = method.bodyStart; } else { element = element.add(method, 0); this.lastCheckPoint = method.declarationSourceEnd + 1; } continue ; } if (node instanceof Initializer) { Initializer initializer = (Initializer) node; if (initializer.declarationSourceEnd == 0) { element = element.add(initializer, 1); this.lastCheckPoint = initializer.sourceStart; } else { element = element.add(initializer, 0); this.lastCheckPoint = initializer.declarationSourceEnd + 1; } continue ; } if (node instanceof FieldDeclaration) { FieldDeclaration field = (FieldDeclaration) node; if (field.declarationSourceEnd == 0) { element = element.add(field, 0); if (field.initialization == null) { this.lastCheckPoint = field.sourceEnd + 1; } else { this.lastCheckPoint = field.initialization.sourceEnd + 1; } } else { element = element.add(field, 0); this.lastCheckPoint = field.declarationSourceEnd + 1; } continue ; } if (node instanceof TypeDeclaration) { TypeDeclaration type = (TypeDeclaration) node; if (type.declarationSourceEnd == 0) { element = element.add(type, 0); this.lastCheckPoint = type.bodyStart; } else { element = element.add(type, 0); this.lastCheckPoint = type.declarationSourceEnd + 1; } continue ; } if (node instanceof ImportReference) { ImportReference importRef = (ImportReference) node; element = element.add(importRef, 0); this.lastCheckPoint = importRef.declarationSourceEnd + 1; } |
| |||
if (node instanceof AbstractMethodDeclaration) { AbstractMethodDeclaration method = (AbstractMethodDeclaration) node; if (method.declarationSourceEnd == 0) { element = element.add(method, 0); [[#variablec1607e60]]= method.bodyStart; } else { element = element.add(method, 0); [[#variablec1607e60]]= method.declarationSourceEnd + 1; } continue ; } if (node instanceof Initializer) { Initializer initializer = (Initializer) node; if (initializer.declarationSourceEnd == 0) { element = element.add(initializer, 1); [[#variablec1607e60]]= initializer.sourceStart; } else { element = element.add(initializer, 0); [[#variablec1607e60]]= initializer.declarationSourceEnd + 1; } continue ; } if (node instanceof FieldDeclaration) { FieldDeclaration field = (FieldDeclaration) node; if (field.declarationSourceEnd == 0) { element = element.add(field, 0); if (field.initialization == null) { [[#variablec1607e60]]= field.sourceEnd + 1; } else { [[#variablec1607e60]]= field.initialization.sourceEnd + 1; } } else { element = element.add(field, 0); [[#variablec1607e60]]= field.declarationSourceEnd + 1; } continue ; } if (node instanceof TypeDeclaration) { TypeDeclaration type = (TypeDeclaration) node; if (type.declarationSourceEnd == 0) { element = element.add(type, 0); [[#variablec1607e60]]= type.bodyStart; } else { element = element.add(type, 0); [[#variablec1607e60]]= type.declarationSourceEnd + 1; } continue ; } if (node instanceof ImportReference) { ImportReference importRef = (ImportReference) node; element = element.add(importRef, 0); [[#variablec1607e60]]= importRef.declarationSourceEnd + 1; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#c1607e60]] | this.lastCheckPoint |
1 | 2 | [[#c1607e60]] | lastCheckPoint |