| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 10 | 5 | 4 | 0.965 | statement_sequence_member |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 9 | 1859 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java |
| 2 | 10 | 2286 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java |
| 3 | 10 | 2836 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java |
| 4 | 10 | 3162 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java |
| 5 | 10 | 3183 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java |
| ||||
if (isChanged(node, ClassInstanceCreation.ARGUMENTS_PROPERTY)) {
try {
int startpos = getScanner().getTokenEndOffset(ITerminalSymbols.TokenNameLPAREN, pos);
rewriteNodeList(node, ClassInstanceCreation.ARGUMENTS_PROPERTY, startpos, "", ", "); //$NON-NLS-1$ //$NON-NLS-2$
} catch (CoreException e) {
handleException(e);
}
}
else {
voidVisit(node, ClassInstanceCreation.ARGUMENTS_PROPERTY);
}
|
| ||||
if (isChanged(node, MethodInvocation.ARGUMENTS_PROPERTY)) {
// eval position after opening parent
try {
int startOffset = getScanner().getTokenEndOffset(ITerminalSymbols.TokenNameLPAREN, pos);
rewriteNodeList(node, MethodInvocation.ARGUMENTS_PROPERTY, startOffset, "", ", "); //$NON-NLS-1$ //$NON-NLS-2$
} catch (CoreException e) {
handleException(e);
}
}
else {
voidVisit(node, MethodInvocation.ARGUMENTS_PROPERTY);
}
|
| ||||
if (isChanged(node, MethodRef.PARAMETERS_PROPERTY)) {
// eval position after opening parent
try {
int startOffset = getScanner().getTokenEndOffset(ITerminalSymbols.TokenNameLPAREN, pos);
rewriteNodeList(node, MethodRef.PARAMETERS_PROPERTY, startOffset, "", ", "); //$NON-NLS-1$ //$NON-NLS-2$
} catch (CoreException e) {
handleException(e);
}
}
else {
voidVisit(node, MethodRef.PARAMETERS_PROPERTY);
}
|
| ||||
if (isChanged(node, NormalAnnotation.VALUES_PROPERTY)) {
// eval position after opening parent
try {
int startOffset = getScanner().getTokenEndOffset(ITerminalSymbols.TokenNameLPAREN, pos);
rewriteNodeList(node, NormalAnnotation.VALUES_PROPERTY, startOffset, "", ", "); //$NON-NLS-1$ //$NON-NLS-2$
} catch (CoreException e) {
handleException(e);
}
}
else {
voidVisit(node, NormalAnnotation.VALUES_PROPERTY);
}
|
| ||||
if (isChanged(node, ParameterizedType.TYPE_ARGUMENTS_PROPERTY)) {
// eval position after opening parent
try {
int startOffset = getScanner().getTokenEndOffset(ITerminalSymbols.TokenNameLESS, pos);
rewriteNodeList(node, ParameterizedType.TYPE_ARGUMENTS_PROPERTY, startOffset, "", ", "); //$NON-NLS-1$ //$NON-NLS-2$
} catch (CoreException e) {
handleException(e);
}
}
else {
voidVisit(node, ParameterizedType.TYPE_ARGUMENTS_PROPERTY);
}
|
| |||
if (isChanged(node, [[#variable95dd8260]]. [[#variable95dd81c0]])) {
// eval position after opening parent
try {
int [[#variable95dd8140]]= getScanner().getTokenEndOffset(ITerminalSymbols. [[#variable95dd80c0]], pos);
rewriteNodeList(node, [[#variable95dd8260]]. [[#variable95dd81c0]], [[#variable95dd8140]], "", ", "); //$NON-NLS-1$ //$NON-NLS-2$
}
catch (CoreException e) {
handleException(e);
}
}
else {
voidVisit(node, [[#variable95dd8260]]. [[#variable95dd81c0]]);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#95dd8260]] | NormalAnnotation |
| 1 | 2 | [[#95dd8260]] | ParameterizedType |
| 1 | 3 | [[#95dd8260]] | ClassInstanceCreation |
| 1 | 4 | [[#95dd8260]] | MethodInvocation |
| 1 | 5 | [[#95dd8260]] | MethodRef |
| 2 | 1 | [[#95dd81c0]] | VALUES_PROPERTY |
| 2 | 2 | [[#95dd81c0]] | TYPE_ARGUMENTS_PROPERTY |
| 2 | 3 | [[#95dd81c0]] | ARGUMENTS_PROPERTY |
| 2 | 4 | [[#95dd81c0]] | ARGUMENTS_PROPERTY |
| 2 | 5 | [[#95dd81c0]] | PARAMETERS_PROPERTY |
| 3 | 1 | [[#95dd8140]] | startOffset |
| 3 | 2 | [[#95dd8140]] | startOffset |
| 3 | 3 | [[#95dd8140]] | startpos |
| 3 | 4 | [[#95dd8140]] | startOffset |
| 3 | 5 | [[#95dd8140]] | startOffset |
| 4 | 1 | [[#95dd80c0]] | TokenNameLPAREN |
| 4 | 2 | [[#95dd80c0]] | TokenNameLESS |
| 4 | 3 | [[#95dd80c0]] | TokenNameLPAREN |
| 4 | 4 | [[#95dd80c0]] | TokenNameLPAREN |
| 4 | 5 | [[#95dd80c0]] | TokenNameLPAREN |