| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 13 | 2 | 3 | 0.971 | statement_sequence[4] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 13 | 523 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddUnimplementedConstructorsAction.java |
| 2 | 13 | 209 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OverrideMethodsAction.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()]);
|
| ||||
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()]);
|
| |||
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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#53701720]] | selected |
| 1 | 2 | [[#53701720]] | elements |
| 2 | 1 | [[#53701680]] | methods |
| 2 | 2 | [[#53701680]] | result |
| 3 | 1 | [[#537016a0]] | methodToOverride |
| 3 | 2 | [[#537016a0]] | selected |