CloneSet1497


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11201.000statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111309
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/InlineMethodRefactoring.java
211394
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ReplaceInvocationsRefactoring.java
Clone Instance
1
Line Count
11
Source Line
309
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/InlineMethodRefactoring.java

                                if ( !added) {
                                        fChangeManager.remove(unit);
                                }
                                else   {
                                        root.addChild(inliner.getModifications());
                                        ImportRewrite rewrite = inliner.getImportEdit();
                                        if (rewrite.hasRecordedChanges()) {
                                                TextEdit edit = rewrite.rewriteImports(null);
                                                if (edit instanceof MultiTextEdit ? ((MultiTextEdit) edit).getChildrenSize() > 0: true) {
                                                        root.addChild(edit);
                                                        change.addTextEditGroup(
                                                                new TextEditGroup(RefactoringCoreMessages.InlineMethodRefactoring_edit_import, new TextEdit[] {
                                                                                                                                                               edit
                                                                                                                                                              } ));
                                                }
                                        }
                                }


Clone Instance
2
Line Count
11
Source Line
394
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ReplaceInvocationsRefactoring.java

                                if ( !added) {
                                        fChangeManager.remove(unit);
                                }
                                else   {
                                        root.addChild(inliner.getModifications());
                                        ImportRewrite rewrite = inliner.getImportEdit();
                                        if (rewrite.hasRecordedChanges()) {
                                                TextEdit edit = rewrite.rewriteImports(null);
                                                if (edit instanceof MultiTextEdit ? ((MultiTextEdit) edit).getChildrenSize() > 0: true) {
                                                        root.addChild(edit);
                                                        change.addTextEditGroup(
                                                                new TextEditGroup(RefactoringCoreMessages.InlineMethodRefactoring_edit_import, new TextEdit[] {
                                                                                                                                                               edit
                                                                                                                                                              } ));
                                                }
                                        }
                                }


Clone AbstractionParameter Count: 0Parameter Bindings

if ( !added) {
  fChangeManager.remove(unit);
}
else {
  root.addChild(inliner.getModifications());
  ImportRewrite rewrite = inliner.getImportEdit();
  if (rewrite.hasRecordedChanges()) {
    TextEdit edit = rewrite.rewriteImports(null);
    if (edit instanceof MultiTextEdit ? ((MultiTextEdit) edit).getChildrenSize() > 0: true) {
      root.addChild(edit);
      change.addTextEditGroup(new TextEditGroup(RefactoringCoreMessages.InlineMethodRefactoring_edit_import, new TextEdit[] {
                                                                                                                              edit
                                                                                                                            } ));
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None