| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 10 | 3 | 2 | 0.994 | statement_sequence[4] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 10 | 333 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredMethod.java |
| 2 | 10 | 407 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredMethod.java |
| 3 | 10 | 460 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredType.java |
| ||||
// protection for bugs 15142
int length = parser.astLengthStack[parser.astLengthPtr];
int astPtr = parser.astPtr - length;
boolean canConsume = astPtr >= 0;
if (canConsume) {
if (( !(parser.astStack[astPtr] instanceof AbstractMethodDeclaration))) {
canConsume = false;
}
for (int i = 1, max = length + 1; i < max; i++) {
if ( !(parser.astStack[astPtr + i] instanceof TypeReference)) {
canConsume = false;
}
}
}
|
| ||||
// protection for bugs 15142
int length = parser.astLengthStack[parser.astLengthPtr];
int astPtr = parser.astPtr - length;
boolean canConsume = astPtr >= 0;
if (canConsume) {
if (( !(parser.astStack[astPtr] instanceof AbstractMethodDeclaration))) {
canConsume = false;
}
for (int i = 1, max = length + 1; i < max; i++) {
if ( !(parser.astStack[astPtr + i] instanceof Argument)) {
canConsume = false;
}
}
}
|
| ||||
int length = parser.astLengthStack[parser.astLengthPtr];
int astPtr = parser.astPtr - length;
boolean canConsume = astPtr >= 0;
if (canConsume) {
if (( !(parser.astStack[astPtr] instanceof TypeDeclaration))) {
canConsume = false;
}
for (int i = 1, max = length + 1; i < max; i++) {
if ( !(parser.astStack[astPtr + i] instanceof TypeReference)) {
canConsume = false;
}
}
}
|
| |||
// protection for bugs 15142
int length = parser.astLengthStack[parser.astLengthPtr];
int astPtr = parser.astPtr - length;
boolean canConsume = astPtr >= 0;
if (canConsume) {
if (( !(parser.astStack[astPtr] instanceof [[#variable9943ab00]]))) {
canConsume = false;
}
for (int i = 1, max = length + 1; i < max; i++) {
if ( !(parser.astStack[astPtr + i] instanceof [[#variableb9a3d260]])) {
canConsume = false;
}
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#9943ab00]] | AbstractMethodDeclaration |
| 1 | 2 | [[#9943ab00]] | AbstractMethodDeclaration |
| 1 | 3 | [[#9943ab00]] | TypeDeclaration |
| 2 | 1 | [[#b9a3d260]] | Argument |
| 2 | 2 | [[#b9a3d260]] | TypeReference |
| 2 | 3 | [[#b9a3d260]] | TypeReference |