_notifyScreenLineChanges(); textArea.updateScrollBars(); textArea.recalculateLastPhysicalLine();
saveFile(); super.removeNotify(); EditBus.removeFromBus(this);
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/DisplayManager.java File path: /jEdit-4.2/jars/QuickNotepad/QuickNotepad.java
Method name: void init() Method name: void removeNotify()
Number of AST nodes: 3 Number of AST nodes: 3
1
_notifyScreenLineChanges();
1
saveFile();
2
				textArea.updateScrollBars();
2
		
3
				textArea.recalculateLastPhysicalLine(
3
super.removeNotify();
4
);
4
		EditBus.removeFromBus(this);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    10
    _notifyScreenLineChanges();
    10
    _notifyScreenLineChanges();
    2
    super.removeNotify();
    Differences
    Expression1Expression2Difference
    _notifyScreenLineChanges()super.removeNotify()TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression _notifyScreenLineChanges() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _notifyScreenLineChanges() is a void method call, and thus it cannot be parameterized
    Expression super.removeNotify() is a void method call, and thus it cannot be parameterized
    Super method call super.removeNotify(); cannot be extracted from method
    2
    super.removeNotify();
    11
    textArea.updateScrollBars();
    11
    textArea.updateScrollBars();
    1
    saveFile();
    Differences
    Expression1Expression2Difference
    updateScrollBarssaveFileMETHOD_INVOCATION_NAME_MISMATCH
    textAreaMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression textArea.updateScrollBars() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression textArea.updateScrollBars() is a void method call, and thus it cannot be parameterized
    Expression saveFile() is a void method call, and thus it cannot be parameterized
    Expression textArea.updateScrollBars() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression textArea.updateScrollBars() is a void method call, and thus it cannot be parameterized
    Expression saveFile() is a void method call, and thus it cannot be parameterized
    1
    saveFile();
                                                                  
    3
    EditBus.removeFromBus(this);
    Preondition Violations
    Unmatched statement EditBus.removeFromBus(this); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3
    EditBus.removeFromBus(this);
    12
    textArea.recalculateLastPhysicalLine();
    12
    textArea.recalculateLastPhysicalLine();
    Preondition Violations
    Unmatched statement textArea.recalculateLastPhysicalLine(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                          
    Precondition Violations (13)
    Row Violation
    1Expression _notifyScreenLineChanges() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression _notifyScreenLineChanges() is a void method call, and thus it cannot be parameterized
    3Expression super.removeNotify() is a void method call, and thus it cannot be parameterized
    4Super method call super.removeNotify(); cannot be extracted from method
    5Expression textArea.updateScrollBars() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression textArea.updateScrollBars() is a void method call, and thus it cannot be parameterized
    7Expression saveFile() is a void method call, and thus it cannot be parameterized
    8Expression textArea.updateScrollBars() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    9Expression textArea.updateScrollBars() is a void method call, and thus it cannot be parameterized
    10Expression saveFile() is a void method call, and thus it cannot be parameterized
    11Unmatched statement EditBus.removeFromBus(this); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    12Unmatched statement textArea.recalculateLastPhysicalLine(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    13The refactoring of the clones is infeasible, because classes org.gjt.sp.jedit.textarea.DisplayManager and QuickNotepad do not have a common superclass