| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 11 | 2 | 6 | 0.968 | executable_statement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 11 | 614 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/IntroduceFactoryRefactoring.java |
| 2 | 11 | 642 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/IntroduceFactoryRefactoring.java |
| ||||
{
Type baseType = ast.newSimpleType(ast.newSimpleName(ctorTypeName));
ParameterizedType newInstantiatedType = ast.newParameterizedType(baseType);
List
/*<Type>*/
newInstTypeArgs = newInstantiatedType.typeArguments();
for (int i = 0; i < ctorOwnerTypeParameters.length; i++) {
Type typeArg = ASTNodeFactory.newType(ast, ctorOwnerTypeParameters[i].getName());
newInstTypeArgs.add(typeArg);
}
newCtorCall.setType(newInstantiatedType);
}
|
| ||||
{
Type baseType = ast.newSimpleType(ast.newSimpleName(retTypeName));
ParameterizedType newRetType = ast.newParameterizedType(baseType);
List
/*<Type>*/
newRetTypeArgs = newRetType.typeArguments();
for (int i = 0; i < ctorOwnerTypeParameters.length; i++) {
Type retTypeArg = ASTNodeFactory.newType(ast, ctorOwnerTypeParameters[i].getName());
newRetTypeArgs.add(retTypeArg);
}
newMethod.setReturnType2(newRetType);
}
|
| |||
{
Type baseType = ast.newSimpleType(ast.newSimpleName( [[#variable5074a2c0]]));
ParameterizedType [[#variable5074a1c0]]= ast.newParameterizedType(baseType);
List [[#variable5074a120]]= [[#variable5074a1c0]].typeArguments();
for (int i = 0; i < ctorOwnerTypeParameters.length; i++) {
Type [[#variable5bdf5120]]= ASTNodeFactory.newType(ast, ctorOwnerTypeParameters[i].getName());
[[#variable5074a120]].add( [[#variable5bdf5120]]);
}
[[#variable5074a000]]. [[#variable5074a0a0]]( [[#variable5074a1c0]]);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#5074a2c0]] | ctorTypeName |
| 1 | 2 | [[#5074a2c0]] | retTypeName |
| 2 | 1 | [[#5074a1c0]] | newInstantiatedType |
| 2 | 2 | [[#5074a1c0]] | newRetType |
| 3 | 1 | [[#5074a120]] | /*<Type>*/ newInstTypeArgs |
| 3 | 2 | [[#5074a120]] | /*<Type>*/ newRetTypeArgs |
| 4 | 1 | [[#5bdf5120]] | typeArg |
| 4 | 2 | [[#5bdf5120]] | retTypeArg |
| 5 | 1 | [[#5074a000]] | newCtorCall |
| 5 | 2 | [[#5074a000]] | newMethod |
| 6 | 1 | [[#5074a0a0]] | setType |
| 6 | 2 | [[#5074a0a0]] | setReturnType2 |