Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 2 | 0.973 | statement_sequence[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 99 | plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/BinaryBasedSourceGenerator.java |
2 | 12 | 221 | plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/SourceBasedSourceGenerator.java |
| ||||
source.append("void "); //$NON-NLS-1$ source.append(getUniqueMethodName(RUN_METHOD_NAME, type)); source.append('('); for (int i = 0,length = fLocalVariableNames.length; i < length; i++) { source.append(getDotName(fLocalVariableTypeNames[i])); source.append(' '); source.append(fLocalVariableNames[i]); if (i + 1 < length) source.append(", "); //$NON-NLS-1$ } source.append(") throws Throwable {"); //$NON-NLS-1$ source.append('\n'); |
| ||||
buffer.append("void "); //$NON-NLS-1$ buffer.append(getUniqueMethodName(RUN_METHOD_NAME, bodyDeclarations)); buffer.append('('); for (int i = 0,length = fLocalVariableNames.length; i < length; i++) { buffer.append(getDotName(fLocalVariableTypeNames[i])); buffer.append(' '); buffer.append(fLocalVariableNames[i]); if (i + 1 < length) buffer.append(", "); //$NON-NLS-1$ } buffer.append(") throws Throwable {"); //$NON-NLS-1$ buffer.append('\n'); |
| |||
[[#variable6039daa0]].append("void "); //$NON-NLS-1$ [[#variable6039daa0]].append(getUniqueMethodName(RUN_METHOD_NAME, [[#variable6039dfe0]])); [[#variable6039daa0]].append('('); for (int i = 0, length = fLocalVariableNames.length; i < length; i++) { [[#variable6039daa0]].append(getDotName(fLocalVariableTypeNames[i])); [[#variable6039daa0]].append(' '); [[#variable6039daa0]].append(fLocalVariableNames[i]); if (i + 1 < length) [[#variable6039daa0]].append(", "); //$NON-NLS-1$ } [[#variable6039daa0]].append(") throws Throwable {"); //$NON-NLS-1$ [[#variable6039daa0]].append('\n'); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6039daa0]] | source |
1 | 2 | [[#6039daa0]] | buffer |
2 | 1 | [[#6039dfe0]] | type |
2 | 2 | [[#6039dfe0]] | bodyDeclarations |