CloneSet3549


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6220.957class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16182
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/GenerateConstructorUsingFieldsContentProvider.java
26575
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/WorkingSetConfigurationDialog.java
Clone Instance
1
Line Count
6
Source Line
182
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/GenerateConstructorUsingFieldsContentProvider.java

        private List reverse(List list) {
                List reverse = new ArrayList(list.size());
                for (int index = list.size() - 1; index >= 0; index--) {
                        reverse.add(list.get(index));
                }
                return reverse;
        }


Clone Instance
2
Line Count
6
Source Line
575
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/WorkingSetConfigurationDialog.java

        private List reverse(List p) {
                List reverse = new ArrayList(p.size());
                for (int i = p.size() - 1; i >= 0; i--) {
                        reverse.add(p.get(i));
                }
                return reverse;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

private List reverse(List  [[#variable9d125720]]) {
  List reverse = new ArrayList( [[#variable9d125720]].size());
  for (int  [[#variable9d1256c0]]= [[#variable9d125720]].size() - 1; [[#variable9d1256c0]]>= 0; [[#variable9d1256c0]]--) {
    reverse.add( [[#variable9d125720]].get( [[#variable9d1256c0]]));
  }
  return reverse;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9d125720]]
p 
12[[#9d125720]]
list 
21[[#9d1256c0]]
i 
22[[#9d1256c0]]
index