CloneSet2005


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13230.971statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113523
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddUnimplementedConstructorsAction.java
213209
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OverrideMethodsAction.java
Clone Instance
1
Line Count
13
Source Line
523
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddUnimplementedConstructorsAction.java

                        if (elements == null) {
                                notifyResult(false);
                                return;
                        }

                        ArrayList result = new ArrayList();
                        for (int i = 0; i < elements.length; i++) {
                                Object elem = elements[i];
                                if (elem instanceof IMethodBinding) {
                                        result.add(elem);
                                }
                        }
                        IMethodBinding[] selected = (IMethodBinding[]) result.toArray(new IMethodBinding[result.size()]);


Clone Instance
2
Line Count
13
Source Line
209
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OverrideMethodsAction.java

                if (selected == null) {
                        notifyResult(false);
                        return;
                }

                ArrayList methods = new ArrayList();
                for (int i = 0; i < selected.length; i++) {
                        Object elem = selected[i];
                        if (elem instanceof IMethodBinding) {
                                methods.add(elem);
                        }
                }
                IMethodBinding[] methodToOverride = (IMethodBinding[]) methods.toArray(new IMethodBinding[methods.size()]);


Clone AbstractionParameter Count: 3Parameter Bindings

if ( [[#variable53701720]]== null) {
  notifyResult(false);
  return;
}
ArrayList  [[#variable53701680]]= new ArrayList();
for (int i = 0; i <  [[#variable53701720]].length; i++) {
  Object elem = [[#variable53701720]][i];
  if (elem instanceof IMethodBinding) {
     [[#variable53701680]].add(elem);
  }
}
IMethodBinding[]  [[#variable537016a0]]= (IMethodBinding[])  [[#variable53701680]].toArray(new IMethodBinding[ [[#variable53701680]].size()]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#53701720]]
selected 
12[[#53701720]]
elements 
21[[#53701680]]
methods 
22[[#53701680]]
result 
31[[#537016a0]]
methodToOverride 
32[[#537016a0]]
selected