CloneSet1891


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4230.979statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14672
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PullUpRefactoringProcessor.java
24915
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PullUpRefactoringProcessor.java
Clone Instance
1
Line Count
4
Source Line
672
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PullUpRefactoringProcessor.java

                                final String[] keys = {
                                                       JavaElementLabels.getTextLabel(matchingField, JavaElementLabels.ALL_FULLY_QUALIFIED), JavaElementLabels.getTextLabel(matchingField.getDeclaringType(), JavaElementLabels.ALL_FULLY_QUALIFIED)
                                               };
                                final String message = Messages.format(RefactoringCoreMessages.PullUpRefactoring_different_field_type, keys);
                                final RefactoringStatusContext context = JavaStatusContext.create(matchingField.getCompilationUnit(), matchingField.getSourceRange());
                                status.addError(message, context);


Clone Instance
2
Line Count
4
Source Line
915
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PullUpRefactoringProcessor.java

                                        final String[] keys = {
                                                               JavaElementLabels.getTextLabel(matchingMethod, JavaElementLabels.ALL_FULLY_QUALIFIED), JavaElementLabels.getTextLabel(matchingMethod.getDeclaringType(), JavaElementLabels.ALL_FULLY_QUALIFIED)
                                                       };
                                        final String message = Messages.format(RefactoringCoreMessages.PullUpRefactoring_different_method_return_type, keys);
                                        final RefactoringStatusContext context = JavaStatusContext.create(matchingMethod.getCompilationUnit(), matchingMethod.getNameRange());
                                        status.addError(message, context);


Clone AbstractionParameter Count: 3Parameter Bindings

final String[] keys = {
                 JavaElementLabels.getTextLabel( [[#variable9b2604a0]], JavaElementLabels.ALL_FULLY_QUALIFIED),
                 JavaElementLabels.getTextLabel( [[#variable9b2604a0]].getDeclaringType(), JavaElementLabels.ALL_FULLY_QUALIFIED)
               };
final String message = Messages.format(RefactoringCoreMessages. [[#variable52849740]], keys);
final RefactoringStatusContext context = JavaStatusContext.create( [[#variable9b2604a0]].getCompilationUnit(),  [[#variable9b2604a0]]. [[#variableb2144d60]]());
status.addError(message, context);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9b2604a0]]
matchingField 
12[[#9b2604a0]]
matchingMethod 
21[[#52849740]]
PullUpRefactoring_different_field_type 
22[[#52849740]]
PullUpRefactoring_different_method_return_type 
31[[#b2144d60]]
getSourceRange 
32[[#b2144d60]]
getNameRange