CloneSet3605


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5230.978executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
151425
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenameTypeProcessor.java
261473
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenameTypeProcessor.java
Clone Instance
1
Line Count
5
Source Line
1425
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenameTypeProcessor.java

                                                                                                           {
                                                String message = Messages.format(RefactoringCoreMessages.RenameTypeProcessor_cannot_rename_methods_same_new_name, new String[] {
                                                                                                                                                                                 alreadyRegisteredMethod.getElementName(),
                                                                 method2.getElementName()                                                                                        ,
                                                                                           alreadyRegisteredMethod.getDeclaringType().getFullyQualifiedName()                    ,
                                                                                                                                                               newName
                                                                                                                                                                               } );
                                                status.addFatalError(message);
                                                return status;
                                                                                                           }


Clone Instance
2
Line Count
6
Source Line
1473
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenameTypeProcessor.java

                                                                                                                               {

                                                String message = Messages.format(RefactoringCoreMessages.RenameTypeProcessor_cannot_rename_fields_same_new_name, new String[] {
                                                                                                                                                                                alreadyRegisteredField.getElementName(),
                                                                 currentField.getElementName()                                                                                  ,
                                                                                                alreadyRegisteredField.getDeclaringType().getFullyQualifiedName()               ,
                                                                                                                                                                   newName
                                                                                                                                                                              } );
                                                status.addFatalError(message);
                                                return status;
                                                                                                                               }


Clone AbstractionParameter Count: 3Parameter Bindings

{
  String message = Messages.format(RefactoringCoreMessages. [[#variable9901a440]], new String[] {
                                                                                                   [[#variable9901a3e0]].getElementName(),
                                                                                                   [[#variable9901a340]].getElementName(),
                                                                                                   [[#variable9901a3e0]].getDeclaringType().getFullyQualifiedName(),
                                                                                                  newName
                                                                                                } );
  status.addFatalError(message);
  return status;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9901a440]]
RenameTypeProcessor_cannot_rename_methods_same_new_name 
12[[#9901a440]]
RenameTypeProcessor_cannot_rename_fields_same_new_name 
21[[#9901a3e0]]
alreadyRegisteredMethod 
22[[#9901a3e0]]
alreadyRegisteredField 
31[[#9901a340]]
method2 
32[[#9901a340]]
currentField