| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 4 | 2 | 3 | 0.979 | statement_sequence[4] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 4 | 672 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PullUpRefactoringProcessor.java |
| 2 | 4 | 915 | 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);
|
| ||||
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);
|
| |||
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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#9b2604a0]] | matchingField |
| 1 | 2 | [[#9b2604a0]] | matchingMethod |
| 2 | 1 | [[#52849740]] | PullUpRefactoring_different_field_type |
| 2 | 2 | [[#52849740]] | PullUpRefactoring_different_method_return_type |
| 3 | 1 | [[#b2144d60]] | getSourceRange |
| 3 | 2 | [[#b2144d60]] | getNameRange |