CloneSet1670


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11260.968executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111614
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/IntroduceFactoryRefactoring.java
211642
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/IntroduceFactoryRefactoring.java
Clone Instance
1
Line Count
11
Source Line
614
Source File
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);
             }


Clone Instance
2
Line Count
11
Source Line
642
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/IntroduceFactoryRefactoring.java

             {
            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);
             }


Clone AbstractionParameter Count: 6Parameter Bindings

{
  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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5074a2c0]]
ctorTypeName 
12[[#5074a2c0]]
retTypeName 
21[[#5074a1c0]]
newInstantiatedType 
22[[#5074a1c0]]
newRetType 
31[[#5074a120]]
/*<Type>*/
newInstTypeArgs 
32[[#5074a120]]
/*<Type>*/
newRetTypeArgs 
41[[#5bdf5120]]
typeArg 
42[[#5bdf5120]]
retTypeArg 
51[[#5074a000]]
newCtorCall 
52[[#5074a000]]
newMethod 
61[[#5074a0a0]]
setType 
62[[#5074a0a0]]
setReturnType2