super(); setText(msg); setBackground(ErrorDialog.getTextAreaBackgroundColor());
addSeparator(); add(_makeEditable); addSeparator();
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/ErrorDialog.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/DataSetViewerTextPanel.java
Method name: void MessagePanel(String) Method name: void MyJTextAreaPopupMenu(boolean, IDataSetUpdateableModel)
Number of AST nodes: 3 Number of AST nodes: 3
1
super();
2
			setText(msg);
3
			setBackground(ErrorDialog.getTextAreaBackgroundCol
1
addSeparator();
2
				add(_makeEditable);
4
or());
3
				addSeparator();
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 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
    1
    super();
                          
    2
    setText(msg);
    2
    setText(msg);
    4
    addSeparator();
    Differences
    Expression1Expression2Difference
    setTextaddSeparatorMETHOD_INVOCATION_NAME_MISMATCH
    setText(msg)addSeparator()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression setText(msg) is a void method call, and thus it cannot be parameterized
    Expression addSeparator() is a void method call, and thus it cannot be parameterized
    Expression setText(msg) is a void method call, and thus it cannot be parameterized
    Expression addSeparator() is a void method call, and thus it cannot be parameterized
    4
    addSeparator();
                                                
    5
    add(_makeEditable);
    3
    setBackground(ErrorDialog.getTextAreaBackgroundColor());
    3
    setBackground(ErrorDialog.getTextAreaBackgroundColor());
    6
    addSeparator();
    Differences
    Expression1Expression2Difference
    setBackgroundaddSeparatorMETHOD_INVOCATION_NAME_MISMATCH
    setBackground(ErrorDialog.getTextAreaBackgroundColor())addSeparator()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression setBackground(ErrorDialog.getTextAreaBackgroundColor()) is a void method call, and thus it cannot be parameterized
    Expression addSeparator() is a void method call, and thus it cannot be parameterized
    Expression setBackground(ErrorDialog.getTextAreaBackgroundColor()) is a void method call, and thus it cannot be parameterized
    Expression addSeparator() is a void method call, and thus it cannot be parameterized
    6
    addSeparator();
    Precondition Violations (9)
    Row Violation
    1Expression setText(msg) is a void method call, and thus it cannot be parameterized
    2Expression addSeparator() is a void method call, and thus it cannot be parameterized
    3Expression setText(msg) is a void method call, and thus it cannot be parameterized
    4Expression addSeparator() is a void method call, and thus it cannot be parameterized
    5Expression setBackground(ErrorDialog.getTextAreaBackgroundColor()) is a void method call, and thus it cannot be parameterized
    6Expression addSeparator() is a void method call, and thus it cannot be parameterized
    7Expression setBackground(ErrorDialog.getTextAreaBackgroundColor()) is a void method call, and thus it cannot be parameterized
    8Expression addSeparator() is a void method call, and thus it cannot be parameterized
    9The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.fw.gui.ErrorDialog.MessagePanel and net.sourceforge.squirrel_sql.fw.datasetviewer.DataSetViewerTextPanel.MyJTextAreaPopupMenu do not have a common superclass