CloneSet786


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20201.000statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12096
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewTreeViewer.java
220316
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
Clone Instance
1
Line Count
20
Source Line
96
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewTreeViewer.java

                ViewerFilter[] filters = getFilters();
                if (filters == null || filters.length == 0)
                        return elements;

                ArrayList filtered = new ArrayList(elements.length);
                Object root = getRoot();
                for (int i = 0; i < elements.length; i++) {
                        boolean add = true;
                        if ( !isEssential(elements[i])) {
                                for (int j = 0; j < filters.length; j++) {
                                        add = filters[j].select(this, root, 
                                                 elements[i]   );
                                        if ( !add)
                                                break;
                                }
                        }
                        if (add)
                                filtered.add(elements[i]);
                }
                return filtered.toArray();


Clone Instance
2
Line Count
20
Source Line
316
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java

                        ViewerFilter[] filters = getFilters();
                        if (filters == null || filters.length == 0)
                                return elements;

                        ArrayList filtered = new ArrayList(elements.length);
                        Object root = getRoot();
                        for (int i = 0; i < elements.length; i++) {
                                boolean add = true;
                                if ( !isEssential(elements[i])) {
                                        for (int j = 0; j < filters.length; j++) {
                                                add = filters[j].select(this, root, 
                                                         elements[i]   );
                                                if ( !add)
                                                        break;
                                        }
                                }
                                if (add)
                                        filtered.add(elements[i]);
                        }
                        return filtered.toArray();


Clone AbstractionParameter Count: 0Parameter Bindings

ViewerFilter[] filters = getFilters();
if (filters == null || filters.length == 0)
  return elements;
ArrayList filtered = new ArrayList(elements.length);
Object root = getRoot();
for (int i = 0; i < elements.length; i++) {
  boolean add = true;
  if ( !isEssential(elements[i])) {
    for (int j = 0; j < filters.length; j++) {
      add = filters[j].select(this, root, elements[i]);
      if ( !add)
        break;
    }
  }
  if (add)
    filtered.add(elements[i]);
}
return filtered.toArray();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None