super.paintComponent(g); super.paintBorder(g); paintGraphComponents(g); super.paintChildren(g);
_checkOptionBox.setSelected(enable); _checkOptionBox.setEnabled(enable); enableCheckOptionRadios(enable);
Clone fragments detected by clone detection tool
File path: /sql12/plugins/graph/src/net/sourceforge/squirrel_sql/plugins/graph/GraphDesktopPane.java File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/gui/AddViewDialog.java
Method name: void paint(Graphics) Method name: void enableCheckOptions(boolean)
Number of AST nodes: 4 Number of AST nodes: 3
1
super.paintComponent(g);
2
      super.paintBorder(g);
3
      paintGraphComponents(g);
4
      super.paintChildren(g
1
_checkOptionBox.setSelected(enable);
2
			_checkOptionBox.setEnabled(enable);
5
);
3
			enableCheckOptionRadios(enable);
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 having the same super class
Number of node comparisons12
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    super.paintComponent(g);
    1
    super.paintComponent(g);
    1
    _checkOptionBox.setSelected(enable);
    Differences
    Expression1Expression2Difference
    super.paintComponent(g)_checkOptionBox.setSelected(enable)TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression super.paintComponent(g) is a void method call, and thus it cannot be parameterized
    Expression _checkOptionBox.setSelected(enable) is a void method call, and thus it cannot be parameterized
    Super method call super.paintComponent(g); cannot be extracted from method
    1
    _checkOptionBox.setSelected(enable);
    2
    super.paintBorder(g);
    2
    super.paintBorder(g);
    2
    _checkOptionBox.setEnabled(enable);
    Differences
    Expression1Expression2Difference
    super.paintBorder(g)_checkOptionBox.setEnabled(enable)TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression super.paintBorder(g) is a void method call, and thus it cannot be parameterized
    Expression _checkOptionBox.setEnabled(enable) is a void method call, and thus it cannot be parameterized
    Super method call super.paintBorder(g); cannot be extracted from method
    2
    _checkOptionBox.setEnabled(enable);
    3
    paintGraphComponents(g);
                                                          
    4
    super.paintChildren(g);
    4
    super.paintChildren(g);
    3
    enableCheckOptionRadios(enable);
    Differences
    Expression1Expression2Difference
    super.paintChildren(g)enableCheckOptionRadios(enable)TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression super.paintChildren(g) is a void method call, and thus it cannot be parameterized
    Expression enableCheckOptionRadios(enable) is a void method call, and thus it cannot be parameterized
    Super method call super.paintChildren(g); cannot be extracted from method
    3
    enableCheckOptionRadios(enable);
    Precondition Violations (10)
    Row Violation
    1Expression super.paintComponent(g) is a void method call, and thus it cannot be parameterized
    2Expression _checkOptionBox.setSelected(enable) is a void method call, and thus it cannot be parameterized
    3Super method call super.paintComponent(g); cannot be extracted from method
    4Expression super.paintBorder(g) is a void method call, and thus it cannot be parameterized
    5Expression _checkOptionBox.setEnabled(enable) is a void method call, and thus it cannot be parameterized
    6Super method call super.paintBorder(g); cannot be extracted from method
    7Expression super.paintChildren(g) is a void method call, and thus it cannot be parameterized
    8Expression enableCheckOptionRadios(enable) is a void method call, and thus it cannot be parameterized
    9Super method call super.paintChildren(g); cannot be extracted from method
    10The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.plugins.graph.GraphDesktopPane and net.sourceforge.squirrel_sql.plugins.refactoring.gui.AddViewDialog.PropertiesTab do not have a common superclass