Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
21 | 2 | 3 | 0.987 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 21 | 89 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringElementFilterDescriptor.java |
2 | 21 | 251 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/filters/FilterDescriptor.java |
| ||||
private static RefactoringElementFilterDescriptor[] createFilterDescriptors(IConfigurationElement[] elements) { List result = new ArrayList(5); Set descIds = new HashSet(5); for (int i = 0; i < elements.length; i++) { final IConfigurationElement element = elements[i]; if (FILTER_TAG.equals(element.getName())) { final RefactoringElementFilterDescriptor[] desc = new RefactoringElementFilterDescriptor[1]; SafeRunner.run(new SafeRunnable(RefactoringCoreMessages.RefactoringElementFilterDescriptor_filterDescriptionCreationError_message) { public void run() throws Exception { desc[0] = new RefactoringElementFilterDescriptor(element); } } ); if (desc[0] != null && !descIds.contains(desc[0].getId())) { result.add(desc[0]); descIds.add(desc[0].getId()); } } } return (RefactoringElementFilterDescriptor[]) result.toArray(new RefactoringElementFilterDescriptor[result.size()]); } |
| ||||
//---- initialization --------------------------------------------------- /** * Creates the filter descriptors. */ private static FilterDescriptor[] createFilterDescriptors(IConfigurationElement[] elements) { List result = new ArrayList(5); Set descIds = new HashSet(5); for (int i = 0; i < elements.length; i++) { final IConfigurationElement element = elements[i]; if (FILTER_TAG.equals(element.getName())) { final FilterDescriptor[] desc = new FilterDescriptor[1]; SafeRunner.run(new SafeRunnable(FilterMessages.FilterDescriptor_filterDescriptionCreationError_message) { public void run() throws Exception { desc[0] = new FilterDescriptor(element); } } ); if (desc[0] != null && !descIds.contains(desc[0].getId())) { result.add(desc[0]); descIds.add(desc[0].getId()); } } } return (FilterDescriptor[]) result.toArray(new FilterDescriptor[result.size()]); } |
| |||
//---- initialization --------------------------------------------------- /** * Creates the filter descriptors. */ private static [[#variableb8b3e600]][] createFilterDescriptors(IConfigurationElement[] elements) { List result = new ArrayList(5); Set descIds = new HashSet(5); for (int i = 0; i < elements.length; i++) { final IConfigurationElement element = elements[i]; if (FILTER_TAG.equals(element.getName())) { final [[#variableb8b3e600]][] desc = new [[#variableb8b3e600]][1]; SafeRunner.run(new SafeRunnable( [[#variableb8b3e6c0]]. [[#variableb8b3e660]]) { public void run() throws Exception { desc[0] = new [[#variableb8b3e600]](element); } } ); if (desc[0] != null && !descIds.contains(desc[0].getId())) { result.add(desc[0]); descIds.add(desc[0].getId()); } } } return ( [[#variableb8b3e600]][]) result.toArray(new [[#variableb8b3e600]][result.size()]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b8b3e600]] | FilterDescriptor |
1 | 2 | [[#b8b3e600]] | RefactoringElementFilterDescriptor |
2 | 1 | [[#b8b3e6c0]] | FilterMessages |
2 | 2 | [[#b8b3e6c0]] | RefactoringCoreMessages |
3 | 1 | [[#b8b3e660]] | FilterDescriptor_filterDescriptionCreationError_message |
3 | 2 | [[#b8b3e660]] | RefactoringElementFilterDescriptor_filterDescriptionCreationError_message |