CloneSet3325


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6230.959statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16611
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/PromoteTempToFieldRefactoring.java
26136
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/util/JavaElementUtil.java
Clone Instance
1
Line Count
6
Source Line
611
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/PromoteTempToFieldRefactoring.java

                        for (int i = 0; i < allMethods.length; i++) {
                                MethodDeclaration declaration = allMethods[i];
                                if (declaration.isConstructor())
                                        result.add(declaration);
                        }
                        return (MethodDeclaration[]) result.toArray(new MethodDeclaration[result.size()]);


Clone Instance
2
Line Count
6
Source Line
136
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/util/JavaElementUtil.java

                for (int i = 0; i < methods.length; i++) {
                        IMethod iMethod = methods[i];
                        if (iMethod.isConstructor())
                                result.add(iMethod);
                }
                return (IMethod[]) result.toArray(new IMethod[result.size()]);


Clone AbstractionParameter Count: 3Parameter Bindings

for (int i = 0; i <  [[#variable58a22b00]].length; i++) {
   [[#variable5f166d20]]  [[#variable5f166d40]]= [[#variable58a22b00]][i];
  if ( [[#variable5f166d40]].isConstructor())
    result.add( [[#variable5f166d40]]);
}
return ( [[#variable5f166d20]][]) result.toArray(new [[#variable5f166d20]][result.size()]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#58a22b00]]
methods 
12[[#58a22b00]]
allMethods 
21[[#5f166d20]]
IMethod 
22[[#5f166d20]]
MethodDeclaration 
31[[#5f166d40]]
iMethod 
32[[#5f166d40]]
declaration