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); showErrorOffsetCheckBox.setToolTipText(i18n.SHOW_ERROR_OFFSET_TT); result.add(showErrorOffsetCheckBox, 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/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/prefs/OraclePluginPreferencesPanel.java
Method name: void addRecycleBinCheckBox(JPanel, int, int) Method name: void addShowErrorOffsetCheckBox(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
		showErrorOffsetCheckBox.setToolTipText(i18n.
8
		result.add(excludeRecycleBinTables
8
SHOW_ERROR_OFFSET_TT);
9
CheckBox, c);
9
		result.add(showErrorOffsetCheckBox, c);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are declared in the same class
Number of node comparisons40
  1. {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
    showErrorOffsetCheckBox.setToolTipText(i18n.SHOW_ERROR_OFFSET_TT);
    Differences
    Expression1Expression2Difference
    HIDE_RECYCLE_BIN_CB_TTSHOW_ERROR_OFFSET_TTVARIABLE_NAME_MISMATCH
    excludeRecycleBinTablesCheckBoxshowErrorOffsetCheckBoxVARIABLE_NAME_MISMATCH
    7
    showErrorOffsetCheckBox.setToolTipText(i18n.SHOW_ERROR_OFFSET_TT);
    8
    result.add(excludeRecycleBinTablesCheckBox, c);
    8
    result.add(excludeRecycleBinTablesCheckBox, c);
    8
    result.add(showErrorOffsetCheckBox, c);
    Differences
    Expression1Expression2Difference
    excludeRecycleBinTablesCheckBoxshowErrorOffsetCheckBoxVARIABLE_NAME_MISMATCH
    8
    result.add(showErrorOffsetCheckBox, c);
    Precondition Violations (0)
    Row Violation