super.updateUI(); if(null != _widget) { _widget.updateUI(); }
super.dispose(); if(null != _widget) { _widget.dispose(); }
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/desktopcontainer/InternalFrameDelegate.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/desktopcontainer/DialogDelegate.java
Method name: void updateUI() Method name: void dispose()
Number of AST nodes: 3 Number of AST nodes: 3
1
super.updateUI();
1
super.dispose();
2
      if(null != _widget)
2
      if(null != _widget)
3
      {
3
      {
4
         _widget.updateUI();
4
         _widget.dispose();
5
      }
5
      }
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.1
Clones locationClones are in different classes having the same super class
Number of node comparisons5
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)25.8
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super.updateUI();
    1
    super.updateUI();
    1
    super.dispose();
    Differences
    Expression1Expression2Difference
    updateUIdisposeMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression super.updateUI() is a void method call, and thus it cannot be parameterized
    Expression super.dispose() is a void method call, and thus it cannot be parameterized
    Super method call super.updateUI(); cannot be extracted from method
    Super method call super.dispose(); cannot be extracted from method
    1
    super.dispose();
    2
    if (null != _widget)
    2
    if (null != _widget)
    3
    _widget.updateUI();
    3
    _widget.updateUI();
    3
    _widget.dispose();
    Differences
    Expression1Expression2Difference
    updateUIdisposeMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression _widget.updateUI() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _widget.dispose() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _widget.updateUI() is a void method call, and thus it cannot be parameterized
    Expression _widget.dispose() is a void method call, and thus it cannot be parameterized
    3
    _widget.dispose();
    Precondition Violations (9)
    Row Violation
    1Expression super.updateUI() is a void method call, and thus it cannot be parameterized
    2Expression super.dispose() is a void method call, and thus it cannot be parameterized
    3Super method call super.updateUI(); cannot be extracted from method
    4Super method call super.dispose(); cannot be extracted from method
    5Expression _widget.updateUI() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression _widget.dispose() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression _widget.updateUI() is a void method call, and thus it cannot be parameterized
    8Expression _widget.dispose() is a void method call, and thus it cannot be parameterized
    9The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.client.gui.desktopcontainer.InternalFrameDelegate and net.sourceforge.squirrel_sql.client.gui.desktopcontainer.DialogDelegate do not have a common superclass