Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 6 | 0.960 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 150 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/RenameFieldWizard.java |
2 | 10 | 167 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/RenameFieldWizard.java |
| ||||
try { IMethod getter = getRenameFieldProcessor().getGetter(); if (getter == null || ! getter.exists()) return defaultLabel; String oldGetterName = getter.getElementName(); String newGetterName = createNewGetterName(); return Messages.format(RefactoringMessages.RenameFieldInputWizardPage_rename_getter_to, new String[] { oldGetterName, newGetterName } ); } catch (CoreException e) { JavaPlugin.log(e); return defaultLabel; } |
| ||||
try { IMethod setter = getRenameFieldProcessor().getSetter(); if (setter == null || ! setter.exists()) return defaultLabel; String oldSetterName = setter.getElementName(); String newSetterName = createNewSetterName(); return Messages.format(RefactoringMessages.RenameFieldInputWizardPage_rename_setter_to, new String[] { oldSetterName, newSetterName } ); } catch (CoreException e) { JavaPlugin.log(e); return defaultLabel; } |
| |||
try { IMethod [[#variable9df78180]]= getRenameFieldProcessor(). [[#variable9df780c0]](); if ( [[#variable9df78180]]== null || ! [[#variable9df78180]].exists()) return defaultLabel; String [[#variable9df78060]]= [[#variable9df78180]].getElementName(); String [[#variable72f53fa0]]= [[#variable72f53f80]](); return Messages.format(RefactoringMessages. [[#variable9df78080]], new String[] { [[#variable9df78060]], [[#variable72f53fa0]] } ); } catch (CoreException e) { JavaPlugin.log(e); return defaultLabel; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9df78180]] | setter |
1 | 2 | [[#9df78180]] | getter |
2 | 1 | [[#9df780c0]] | getSetter |
2 | 2 | [[#9df780c0]] | getGetter |
3 | 1 | [[#9df78060]] | oldSetterName |
3 | 2 | [[#9df78060]] | oldGetterName |
4 | 1 | [[#72f53fa0]] | newSetterName |
4 | 2 | [[#72f53fa0]] | newGetterName |
5 | 1 | [[#72f53f80]] | createNewSetterName |
5 | 2 | [[#72f53f80]] | createNewGetterName |
6 | 1 | [[#9df78080]] | RenameFieldInputWizardPage_rename_setter_to |
6 | 2 | [[#9df78080]] | RenameFieldInputWizardPage_rename_getter_to |