Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
20 | 2 | 0 | 1.000 | statement_sequence[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 20 | 96 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewTreeViewer.java |
2 | 20 | 316 | 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(); |
| ||||
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(); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |