CloneSet3642


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6220.967statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1679
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/GenerateConstructorUsingFieldsContentProvider.java
26801
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/TreeListDialogField.java
Clone Instance
1
Line Count
6
Source Line
79
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/GenerateConstructorUsingFieldsContentProvider.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--;
                }


Clone Instance
2
Line Count
6
Source Line
801
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/TreeListDialogField.java

                        int nSelected = selectedElements.size();
                        for (int i = fElements.size() - 1; i >= 0 && nSelected > 0; i--) {
                                if ( !selectedElements.contains(fElements.get(i))) {
                                        return true;
                                }
                                nSelected--;
                        }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#576d4f40]]
index 
12[[#576d4f40]]
i 
21[[#576d51a0]]
fFields 
22[[#576d51a0]]
fElements