| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 4 | 3 | 1 | 0.973 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 4 | 202 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredField.java |
| 2 | 4 | 51 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredImport.java |
| 3 | 4 | 103 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredLocalVariable.java |
| ||||
/*
* Update the declarationSourceEnd of the corresponding parse node
*/
public void updateSourceEndIfNecessary(int bodyStart, int bodyEnd) {
if (this.fieldDeclaration.declarationSourceEnd == 0) {
this.fieldDeclaration.declarationSourceEnd = bodyEnd;
this.fieldDeclaration.declarationEnd = bodyEnd;
}
}
|
| ||||
/*
* Update the declarationSourceEnd of the corresponding parse node
*/
public void updateSourceEndIfNecessary(int bodyStart, int bodyEnd) {
if (this.importReference.declarationSourceEnd == 0) {
this.importReference.declarationSourceEnd = bodyEnd;
this.importReference.declarationEnd = bodyEnd;
}
}
|
| ||||
/*
* Update the declarationSourceEnd of the corresponding parse node
*/
public void updateSourceEndIfNecessary(int bodyStart, int bodyEnd) {
if (this.localDeclaration.declarationSourceEnd == 0) {
this.localDeclaration.declarationSourceEnd = bodyEnd;
this.localDeclaration.declarationEnd = bodyEnd;
}
}
|
| |||
/*
* Update the declarationSourceEnd of the corresponding parse node
*/
public void updateSourceEndIfNecessary(int bodyStart, int bodyEnd) {
if (this. [[#variableb2595440]].declarationSourceEnd == 0) {
this. [[#variableb2595440]].declarationSourceEnd = bodyEnd;
this. [[#variableb2595440]].declarationEnd = bodyEnd;
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b2595440]] | localDeclaration |
| 1 | 2 | [[#b2595440]] | importReference |
| 1 | 3 | [[#b2595440]] | fieldDeclaration |