CloneSet4551


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7230.961class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1750
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/GenerateConstructorUsingFieldsValidator.java
27355
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddUnimplementedConstructorsAction.java
Clone Instance
1
Line Count
7
Source Line
50
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/GenerateConstructorUsingFieldsValidator.java

        private int countSelectedFields(Object[] selection) {
                int count = 0;
                for (int index = 0; index < selection.length; index++) {
                        if (selection[index] instanceof IVariableBinding)
                                count++;
                }
                return count;
        }


Clone Instance
2
Line Count
7
Source Line
355
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddUnimplementedConstructorsAction.java

                private int countSelectedMethods(Object[] selection) {
                        int count = 0;
                        for (int i = 0; i < selection.length; i++) {
                                if (selection[i] instanceof IMethodBinding)
                                        count++;
                        }
                        return count;
                }


Clone AbstractionParameter Count: 3Parameter Bindings

private int  [[#variableb1e9fce0]](Object[] selection) {
  int count = 0;
  for (int  [[#variableb1e9fc60]]= 0; [[#variableb1e9fc60]] < selection.length; [[#variableb1e9fc60]]++) {
    if (selection[ [[#variableb1e9fc60]]] instanceof [[#variableb1e9fbe0]])
      count++;
  }
  return count;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b1e9fce0]]
countSelectedMethods 
12[[#b1e9fce0]]
countSelectedFields 
21[[#b1e9fc60]]
i 
22[[#b1e9fc60]]
index 
31[[#b1e9fbe0]]
IMethodBinding 
32[[#b1e9fbe0]]
IVariableBinding