chBinary.setEnabled(true); chUnsigned.setEnabled(false); chZeroFill.setEnabled(false);
commitRecordCountLabel.setEnabled(false); commitRecordCountTextField.setEnabled(false); commitAfterCreateTableCheckBox.setEnabled(false);
Clone fragments detected by clone detection tool
File path: /sql12/plugins/mysql/src/net/sourceforge/squirrel_sql/plugins/mysql/action/CreateTableCommand.java File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/gui/PreferencesPanel.java
Method name: void cbFieldTypeActionPerformed(java.awt.event.ActionEvent) Method name: void loadData()
Number of AST nodes: 3 Number of AST nodes: 3
1
chBinary.setEnabled(true);
1
c
2
			chUnsigned.setEnabled(false);
3
			chZeroFill
2
ommitRecordCountLabel.setEnabled(false);
3
            commitRecordCountTextField.setEnabled(false);
4
.setEnabled(false);
4
            commitAfterCreateTableCheckBox.setEnabled(false);
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 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)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    3
    chBinary.setEnabled(true);
    3
    chBinary.setEnabled(true);
    11
    commitRecordCountLabel.setEnabled(false);
    Differences
    Expression1Expression2Difference
    truefalseLITERAL_VALUE_MISMATCH
    chBinarycommitRecordCountLabelVARIABLE_NAME_MISMATCH
    javax.swing.JCheckBoxjavax.swing.JLabelSUBCLASS_TYPE_MISMATCH
    11
    commitRecordCountLabel.setEnabled(false);
    4
    chUnsigned.setEnabled(false);
    4
    chUnsigned.setEnabled(false);
    12
    commitRecordCountTextField.setEnabled(false);
    Differences
    Expression1Expression2Difference
    chUnsignedcommitRecordCountTextFieldVARIABLE_NAME_MISMATCH
    javax.swing.JCheckBoxjavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    12
    commitRecordCountTextField.setEnabled(false);
    5
    chZeroFill.setEnabled(false);
    5
    chZeroFill.setEnabled(false);
    13
    commitAfterCreateTableCheckBox.setEnabled(false);
    Differences
    Expression1Expression2Difference
    chZeroFillcommitAfterCreateTableCheckBoxVARIABLE_NAME_MISMATCH
    13
    commitAfterCreateTableCheckBox.setEnabled(false);
    Precondition Violations (1)
    Row Violation
    1The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.plugins.mysql.action.CreateTableCommand and net.sourceforge.squirrel_sql.plugins.dbcopy.gui.PreferencesPanel do not have a common superclass