chBinary.setEnabled(true); chUnsigned.setEnabled(false); chZeroFill.setEnabled(false);
commitRecordCountLabel.setEnabled(true); commitRecordCountTextField.setEnabled(true); commitAfterCreateTableCheckBox.setEnabled(true);
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(true);
3
            commitRecordCountTextField.setEnabled(true);     
4
.setEnabled(false);
4
            commitAfterCreateTableCheckBox.setEnabled(true);
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);
    14
    commitRecordCountLabel.setEnabled(true);
    Differences
    Expression1Expression2Difference
    chBinarycommitRecordCountLabelVARIABLE_NAME_MISMATCH
    javax.swing.JCheckBoxjavax.swing.JLabelSUBCLASS_TYPE_MISMATCH
    14
    commitRecordCountLabel.setEnabled(true);
    4
    chUnsigned.setEnabled(false);
    4
    chUnsigned.setEnabled(false);
    15
    commitRecordCountTextField.setEnabled(true);
    Differences
    Expression1Expression2Difference
    falsetrueLITERAL_VALUE_MISMATCH
    chUnsignedcommitRecordCountTextFieldVARIABLE_NAME_MISMATCH
    javax.swing.JCheckBoxjavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    15
    commitRecordCountTextField.setEnabled(true);
    5
    chZeroFill.setEnabled(false);
    5
    chZeroFill.setEnabled(false);
    16
    commitAfterCreateTableCheckBox.setEnabled(true);
    Differences
    Expression1Expression2Difference
    falsetrueLITERAL_VALUE_MISMATCH
    chZeroFillcommitAfterCreateTableCheckBoxVARIABLE_NAME_MISMATCH
    16
    commitAfterCreateTableCheckBox.setEnabled(true);
    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