| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 7 | 2 | 4 | 0.952 | executable_statement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 7 | 71 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java |
| 2 | 7 | 466 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java |
| ||||
{
// for interface and annotation members copy the modifiers from an existing field
MethodDeclaration[] methodDecls = ((TypeDeclaration) targetTypeDecl).getMethods();
if (methodDecls.length > 0) {
return methodDecls[0].getModifiers();
}
return 0;
}
|
| ||||
{
// for interface members copy the modifiers from an existing field
FieldDeclaration[] fieldDecls = ((TypeDeclaration) newTypeDecl).getFields();
if (fieldDecls.length > 0) {
return fieldDecls[0].getModifiers();
}
return 0;
}
|
| |||
{
[[#variable94619160]][] [[#variable946190e0]]= ((TypeDeclaration) [[#variable94619060]]). [[#variable94619000]]();
if ( [[#variable946190e0]].length > 0) {
return [[#variable946190e0]][0].getModifiers();
}
return 0;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#94619160]] | // for interface and annotation members copy the modifiers from an existing field MethodDeclaration |
| 1 | 2 | [[#94619160]] | // for interface members copy the modifiers from an existing field FieldDeclaration |
| 2 | 1 | [[#946190e0]] | methodDecls |
| 2 | 2 | [[#946190e0]] | fieldDecls |
| 3 | 1 | [[#94619060]] | targetTypeDecl |
| 3 | 2 | [[#94619060]] | newTypeDecl |
| 4 | 1 | [[#94619000]] | getMethods |
| 4 | 2 | [[#94619000]] | getFields |