Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 2 | 0.967 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 79 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/GenerateConstructorUsingFieldsContentProvider.java |
2 | 6 | 801 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/TreeListDialogField.java |
| ||||
int nSelected = selectedElements.size(); for (int index = fFields.size() - 1; index >= 0 && nSelected > 0; index--) { if ( !selectedElements.contains(fFields.get(index))) { return true; } nSelected--; } |
| ||||
int nSelected = selectedElements.size(); for (int i = fElements.size() - 1; i >= 0 && nSelected > 0; i--) { if ( !selectedElements.contains(fElements.get(i))) { return true; } nSelected--; } |
| |||
int nSelected = selectedElements.size(); for (int [[#variable576d4f40]]= [[#variable576d51a0]].size() - 1; [[#variable576d4f40]]>= 0 && nSelected > 0; [[#variable576d4f40]]--) { if ( !selectedElements.contains( [[#variable576d51a0]].get( [[#variable576d4f40]]))) { return true; } nSelected--; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#576d4f40]] | index |
1 | 2 | [[#576d4f40]] | i |
2 | 1 | [[#576d51a0]] | fFields |
2 | 2 | [[#576d51a0]] | fElements |