Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 2 | 0.977 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 154 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ChangeExceptionsControl.java |
2 | 10 | 381 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ChangeParametersControl.java |
| ||||
private ExceptionInfo[] getSelectedItems() { ISelection selection = fTableViewer.getSelection(); if (selection == null) return new ExceptionInfo[0]; if ( !(selection instanceof IStructuredSelection)) return new ExceptionInfo[0]; List selected = ((IStructuredSelection) selection).toList(); return (ExceptionInfo[]) selected.toArray(new ExceptionInfo[selected.size()]); } |
| ||||
private ParameterInfo[] getSelectedElements() { ISelection selection = fTableViewer.getSelection(); if (selection == null) return new ParameterInfo[0]; if ( !(selection instanceof IStructuredSelection)) return new ParameterInfo[0]; List selected = ((IStructuredSelection) selection).toList(); return (ParameterInfo[]) selected.toArray(new ParameterInfo[selected.size()]); } |
| |||
private [[#variablec2d011e0]][] [[#variablec2d01180]]() { ISelection selection = fTableViewer.getSelection(); if (selection == null) return new [[#variablec2d011e0]][0]; if ( !(selection instanceof IStructuredSelection)) return new [[#variablec2d011e0]][0]; List selected = ((IStructuredSelection) selection).toList(); return ( [[#variablec2d011e0]][]) selected.toArray(new [[#variablec2d011e0]][selected.size()]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#c2d011e0]] | ParameterInfo |
1 | 2 | [[#c2d011e0]] | ExceptionInfo |
2 | 1 | [[#c2d01180]] | getSelectedElements |
2 | 2 | [[#c2d01180]] | getSelectedItems |