CloneSet1116


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119120
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPUserLibraryElement.java
219554
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/WorkingSetConfigurationDialog.java
Clone Instance
1
Line Count
19
Source Line
120
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPUserLibraryElement.java

        private List moveUp(List elements, List move) {
                int nElements = elements.size();
                List res = new ArrayList(nElements);
                Object floating = null;
                for (int i = 0; i < nElements; i++) {
                        Object curr = elements.get(i);
                        if (move.contains(curr)) {
                                res.add(curr);
                        }
                        else   {
                                if (floating != null) {
                                        res.add(floating);
                                }
                                floating = curr;
                        }
                }
                if (floating != null) {
                        res.add(floating);
                }
                return res;
        }


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

        private List moveUp(List elements, List move) {
                int nElements = elements.size();
                List res = new ArrayList(nElements);
                Object floating = null;
                for (int i = 0; i < nElements; i++) {
                        Object curr = elements.get(i);
                        if (move.contains(curr)) {
                                res.add(curr);
                        }
                        else   {
                                if (floating != null) {
                                        res.add(floating);
                                }
                                floating = curr;
                        }
                }
                if (floating != null) {
                        res.add(floating);
                }
                return res;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

private List moveUp(List elements, List move) {
  int nElements = elements.size();
  List res = new ArrayList(nElements);
  Object floating = null;
  for (int i = 0; i < nElements; i++) {
    Object curr = elements.get(i);
    if (move.contains(curr)) {
      res.add(curr);
    }
    else {
      if (floating != null) {
        res.add(floating);
      }
      floating = curr;
    }
  }
  if (floating != null) {
    res.add(floating);
  }
  return res;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None