commitRecordCountLabel.setEnabled(true); commitRecordCountTextField.setEnabled(true); commitAfterCreateTableCheckBox.setEnabled(true);
chBinary.setEnabled(false); chUnsigned.setEnabled(true); chZeroFill.setEnabled(true);
Clone fragments detected by clone detection tool
File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/gui/PreferencesPanel.java File path: /sql12/plugins/mysql/src/net/sourceforge/squirrel_sql/plugins/mysql/action/CreateTableCommand.java
Method name: void loadData() Method name: void cbFieldTypeActionPerformed(java.awt.event.ActionEvent)
Number of AST nodes: 3 Number of AST nodes: 3
1
commitRecordCountLabel.setEnabled(true);
1
c
2
            commitRecordCountTextField.setEnabled(true);     
3
            commitAfterCreateTableCheckBox
2
hBinary.setEnabled(false);
3
			chUnsigned.setEnabled(true);
4
.setEnabled(true);
4
			chZeroFill.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
    14
    commitRecordCountLabel.setEnabled(true);
    14
    commitRecordCountLabel.setEnabled(true);
    9
    chBinary.setEnabled(false);
    Differences
    Expression1Expression2Difference
    truefalseLITERAL_VALUE_MISMATCH
    commitRecordCountLabelchBinaryVARIABLE_NAME_MISMATCH
    javax.swing.JLabeljavax.swing.JCheckBoxSUBCLASS_TYPE_MISMATCH
    9
    chBinary.setEnabled(false);
    15
    commitRecordCountTextField.setEnabled(true);
    15
    commitRecordCountTextField.setEnabled(true);
    10
    chUnsigned.setEnabled(true);
    Differences
    Expression1Expression2Difference
    commitRecordCountTextFieldchUnsignedVARIABLE_NAME_MISMATCH
    javax.swing.JTextFieldjavax.swing.JCheckBoxSUBCLASS_TYPE_MISMATCH
    10
    chUnsigned.setEnabled(true);
    16
    commitAfterCreateTableCheckBox.setEnabled(true);
    16
    commitAfterCreateTableCheckBox.setEnabled(true);
    11
    chZeroFill.setEnabled(true);
    Differences
    Expression1Expression2Difference
    commitAfterCreateTableCheckBoxchZeroFillVARIABLE_NAME_MISMATCH
    11
    chZeroFill.setEnabled(true);
    Precondition Violations (1)
    Row Violation
    1The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.plugins.dbcopy.gui.PreferencesPanel and net.sourceforge.squirrel_sql.plugins.mysql.action.CreateTableCommand do not have a common superclass