| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 10 | 2 | 1 | 0.990 | statement_sequence_member |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 10 | 2444 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java |
| 2 | 10 | 2858 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java |
| ||||
if (node.getAST().apiLevel() >= AST.JLS3) {
if (isChanged(node, SingleVariableDeclaration.VARARGS_PROPERTY)) {
if (getNewValue(node, SingleVariableDeclaration.VARARGS_PROPERTY).equals(Boolean.TRUE)) {
doTextInsert(pos, "...", getEditGroup(node, SingleVariableDeclaration.VARARGS_PROPERTY)); //$NON-NLS-1$
}
else {
try {
int ellipsisEnd = getScanner().getNextEndOffset(pos, true);
doTextRemove(pos, ellipsisEnd - pos, getEditGroup(node, SingleVariableDeclaration.VARARGS_PROPERTY));
} catch (CoreException e) {
handleException(e);
}
}
}
}
|
| ||||
if (node.getAST().apiLevel() >= AST.JLS3) {
if (isChanged(node, MethodRefParameter.VARARGS_PROPERTY)) {
if (getNewValue(node, MethodRefParameter.VARARGS_PROPERTY).equals(Boolean.TRUE)) {
doTextInsert(pos, "...", getEditGroup(node, MethodRefParameter.VARARGS_PROPERTY)); //$NON-NLS-1$
}
else {
try {
int ellipsisEnd = getScanner().getNextEndOffset(pos, true);
doTextRemove(pos, ellipsisEnd - pos, getEditGroup(node, MethodRefParameter.VARARGS_PROPERTY));
} catch (CoreException e) {
handleException(e);
}
}
}
}
|
| |||
if (node.getAST().apiLevel() >= AST.JLS3) {
if (isChanged(node, [[#variable59588320]].VARARGS_PROPERTY)) {
if (getNewValue(node, [[#variable59588320]].VARARGS_PROPERTY).equals(Boolean.TRUE)) {
doTextInsert(pos, "...", getEditGroup(node, [[#variable59588320]].VARARGS_PROPERTY)); //$NON-NLS-1$
}
else {
try {
int ellipsisEnd = getScanner().getNextEndOffset(pos, true);
doTextRemove(pos, ellipsisEnd - pos, getEditGroup(node, [[#variable59588320]].VARARGS_PROPERTY));
}
catch (CoreException e) {
handleException(e);
}
}
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#59588320]] | SingleVariableDeclaration |
| 1 | 2 | [[#59588320]] | MethodRefParameter |