Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 2 | 0.985 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 63 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredMethod.java |
2 | 13 | 105 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredMethod.java |
| ||||
/* default behavior is to delegate recording to parent if any, do not consider elements passed the known end (if set) it must be belonging to an enclosing element */ if (methodDeclaration.declarationSourceEnd > 0 && nestedBlockDeclaration.sourceStart > methodDeclaration.declarationSourceEnd) { if (this.parent == null) { return this ; // ignore } else { return this.parent.add(nestedBlockDeclaration, bracketBalanceValue); } } /* consider that if the opening brace was not found, it is there */ if ( !foundOpeningBrace) { foundOpeningBrace = true; this.bracketBalance++; } |
| ||||
/* default behavior is to delegate recording to parent if any, do not consider elements passed the known end (if set) it must be belonging to an enclosing element */ if (methodDeclaration.declarationSourceEnd > 0 && fieldDeclaration.declarationSourceStart > methodDeclaration.declarationSourceEnd) { if (this.parent == null) { return this ; // ignore } else { return this.parent.add(fieldDeclaration, bracketBalanceValue); } } /* consider that if the opening brace was not found, it is there */ if ( !foundOpeningBrace) { foundOpeningBrace = true; this.bracketBalance++; } |
| |||
/* default behavior is to delegate recording to parent if any, do not consider elements passed the known end (if set) it must be belonging to an enclosing element */ if (methodDeclaration.declarationSourceEnd > 0 && [[#variable4e8063e0]]. [[#variable4e806400]] > methodDeclaration.declarationSourceEnd) { if (this.parent == null) { return this ; // ignore } else { return this.parent.add( [[#variable4e8063e0]], bracketBalanceValue); } } /* consider that if the opening brace was not found, it is there */ if ( !foundOpeningBrace) { foundOpeningBrace = true; this.bracketBalance++; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4e8063e0]] | fieldDeclaration |
1 | 2 | [[#4e8063e0]] | nestedBlockDeclaration |
2 | 1 | [[#4e806400]] | declarationSourceStart |
2 | 2 | [[#4e806400]] | sourceStart |