GridBagConstraints c = new GridBagConstraints(); c.gridx = col; c.gridy = row; c.gridwidth = 2; // Span across two columns c.anchor = GridBagConstraints.WEST; c.insets = new Insets(5, 5, 0, 0); excludeRecycleBinTablesCheckBox.setToolTipText(i18n.HIDE_RECYCLE_BIN_CB_TT); result.add(excludeRecycleBinTablesCheckBox, c);
GridBagConstraints c = new GridBagConstraints(); c.gridx = col; c.gridy = row; c.gridwidth = 2; // Span across two columns c.anchor = GridBagConstraints.WEST; c.insets = new Insets(5,5,0,0); readClobsFullyCheckBox.setToolTipText(i18n.READ_DERBY_CLOBS_FULLY_TT); result.add(readClobsFullyCheckBox, c);
Clone fragments detected by clone detection tool
File path: /sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/prefs/OraclePluginPreferencesPanel.java File path: /sql12/plugins/derby/src/net/sourceforge/squirrel_sql/plugins/derby/prefs/DerbyPluginPreferencesPanel.java
Method name: void addRecycleBinCheckBox(JPanel, int, int) Method name: void addReadClobsFullyCheckBox(JPanel, int, int)
Number of AST nodes: 8 Number of AST nodes: 8
1
GridBagConstraints c = new GridBagConstraints();
1
GridBagConstraints c = new GridBagConstraints();
2
		c.gridx = col;
2
        c.gridx = col;
3
		c.gridy = row;
3
        c.gridy = row;
4
		c.gridwidth = 2; // Span across two columns
4
        c.gridwidth = 2;  // Span across two columns
5
		c.anchor = GridBagConstraints.WEST;
5
        c.anchor = GridBagConstraints.WEST;
6
		c.insets = new Insets(5, 5, 0, 0);
6
        c.insets = new Insets(5,5,0,0);
7
		excludeRecycleBinTablesCheckBox.setToolTipText(i18n.HIDE_RECYCLE_BIN_CB_TT);
7
        readClobsFullyCheckBox.setToolTipText(i18n.
8
		result.add(excludeRecycleBinTables
8
READ_DERBY_CLOBS_FULLY_TT);
9
CheckBox, c);
9
        result.add(readClobsFullyCheckBox, c);
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 comparisons40
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements8
    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
    1
    GridBagConstraints c = new GridBagConstraints();
    1
    GridBagConstraints c = new GridBagConstraints();
    2
    c.gridx = col;
    2
    c.gridx = col;
    3
    c.gridy = row;
    3
    c.gridy = row;
    4
    c.gridwidth = 2;
    4
    c.gridwidth = 2;
    5
    c.anchor = GridBagConstraints.WEST;
    5
    c.anchor = GridBagConstraints.WEST;
    6
    c.insets = new Insets(5, 5, 0, 0);
    6
    c.insets = new Insets(5, 5, 0, 0);
    7
    excludeRecycleBinTablesCheckBox.setToolTipText(i18n.HIDE_RECYCLE_BIN_CB_TT);
    7
    excludeRecycleBinTablesCheckBox.setToolTipText(i18n.HIDE_RECYCLE_BIN_CB_TT);
    7
    readClobsFullyCheckBox.setToolTipText(i18n.READ_DERBY_CLOBS_FULLY_TT);
    Differences
    Expression1Expression2Difference
    net.sourceforge.squirrel_sql.plugins.oracle.prefs.OraclePluginPreferencesPanel.i18nnet.sourceforge.squirrel_sql.plugins.derby.prefs.DerbyPluginPreferencesPanel.i18nVARIABLE_TYPE_MISMATCH
    HIDE_RECYCLE_BIN_CB_TTREAD_DERBY_CLOBS_FULLY_TTVARIABLE_NAME_MISMATCH
    excludeRecycleBinTablesCheckBoxreadClobsFullyCheckBoxVARIABLE_NAME_MISMATCH
    Preondition Violations
    Type net.sourceforge.squirrel_sql.plugins.oracle.prefs.OraclePluginPreferencesPanel.i18n does not match with type net.sourceforge.squirrel_sql.plugins.derby.prefs.DerbyPluginPreferencesPanel.i18n
    • Make classes net.sourceforge.squirrel_sql.plugins.oracle.prefs.OraclePluginPreferencesPanel.i18n and net.sourceforge.squirrel_sql.plugins.derby.prefs.DerbyPluginPreferencesPanel.i18n extend a common superclass
    7
    readClobsFullyCheckBox.setToolTipText(i18n.READ_DERBY_CLOBS_FULLY_TT);
    8
    result.add(excludeRecycleBinTablesCheckBox, c);
    8
    result.add(excludeRecycleBinTablesCheckBox, c);
    8
    result.add(readClobsFullyCheckBox, c);
    Differences
    Expression1Expression2Difference
    excludeRecycleBinTablesCheckBoxreadClobsFullyCheckBoxVARIABLE_NAME_MISMATCH
    8
    result.add(readClobsFullyCheckBox, c);
    Precondition Violations (1)
    Row Violation
    1Type net.sourceforge.squirrel_sql.plugins.oracle.prefs.OraclePluginPreferencesPanel.i18n does not match with type net.sourceforge.squirrel_sql.plugins.derby.prefs.DerbyPluginPreferencesPanel.i18n