CloneSet2014


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10260.960statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110150
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/RenameFieldWizard.java
210167
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/RenameFieldWizard.java
Clone Instance
1
Line Count
10
Source Line
150
Source File
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;
                          }


Clone Instance
2
Line Count
10
Source Line
167
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/RenameFieldWizard.java

                        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;
                          }


Clone AbstractionParameter Count: 6Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9df78180]]
setter 
12[[#9df78180]]
getter 
21[[#9df780c0]]
getSetter 
22[[#9df780c0]]
getGetter 
31[[#9df78060]]
oldSetterName 
32[[#9df78060]]
oldGetterName 
41[[#72f53fa0]]
newSetterName 
42[[#72f53fa0]]
newGetterName 
51[[#72f53f80]]
createNewSetterName 
52[[#72f53f80]]
createNewGetterName 
61[[#9df78080]]
RenameFieldInputWizardPage_rename_setter_to 
62[[#9df78080]]
RenameFieldInputWizardPage_rename_getter_to