GridBagConstraints c = new GridBagConstraints(); c.gridx = col; c.gridy = row; c.insets = new Insets(5,25,0,0); String commitLabel = s_stringMgr.getString("PreferencesPanel.commitRecordCountLabel"); commitRecordCountLabel = new JLabel(commitLabel); commitRecordCountLabel.setHorizontalAlignment(JLabel.RIGHT); String commitlabelToolTipText = s_stringMgr.getString("PreferencesPanel.commitRecordCountToolTip"); commitRecordCountLabel.setToolTipText(commitlabelToolTipText); panel.add(commitRecordCountLabel, c);
GridBagConstraints c = new GridBagConstraints(); c.gridx = col; c.gridy = row; c.insets = new Insets(5,25,0,0); String bsLabel = s_stringMgr.getString("PreferencesPanel.fetchSizeLabel"); selectFetchSizeLabel = new JLabel(bsLabel); selectFetchSizeLabel.setHorizontalAlignment(JLabel.LEFT); String labelToolTipText = s_stringMgr.getString("PreferencesPanel.fetchSizeToolTip"); selectFetchSizeLabel.setToolTipText(labelToolTipText); panel.add(selectFetchSizeLabel, c);
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/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/gui/PreferencesPanel.java
Method name: void addRecordCountLabel(JPanel, int, int) Method name: void addFetchSizeLabel(JPanel, int, int)
Number of AST nodes: 10 Number of AST nodes: 10
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.insets = new Insets(5,25,0,0);
4
        c.insets = new Insets(5,25,0,0);
5
        String commitLabel = 
5
        String bsLabel = 
6
            s_stringMgr.getString("PreferencesPanel.commitRecordCountLabel");
6
            s_stringMgr.getString("PreferencesPanel.
7
        commitRecordCount
7
fetchSizeLabel");
8
Label = new JLabel(commitLabel);
8
        selectFetchSizeLabel = new JLabel(bsLabel);
9
        commitRecordCountLabel.setHorizontalAlignment(JLabel.RIGHT);
9
        selectFetchSizeLabel.setHorizontalAlignment(JLabel.LEFT);
10
        String commitlabelToolTipText = 
10
        String labelToolTipText = 
11
            s_stringMgr.getString("PreferencesPanel.commitRecordCountToolTip");
11
            s_stringMgr.getString("PreferencesPanel.fetchSizeToolTip");
12
        commitRecordCountLabel.setToolTipText(commitlabelToolTipText);
12
        selectFetchSizeLabel.setToolTipText(labelToolTipText);
13
        panel.add(commitRecordCountLabel, c);
13
        panel.add(selectFetchSizeLabel, 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 comparisons46
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements10
    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.insets = new Insets(5, 25, 0, 0);
    4
    c.insets = new Insets(5, 25, 0, 0);
    5
    String commitLabel = s_stringMgr.getString("PreferencesPanel.commitRecordCountLabel");
    5
    String commitLabel = s_stringMgr.getString("PreferencesPanel.commitRecordCountLabel");
    5
    String bsLabel = s_stringMgr.getString("PreferencesPanel.fetchSizeLabel");
    Differences
    Expression1Expression2Difference
    commitLabelbsLabelVARIABLE_NAME_MISMATCH
    "PreferencesPanel.commitRecordCountLabel""PreferencesPanel.fetchSizeLabel"LITERAL_VALUE_MISMATCH
    5
    String bsLabel = s_stringMgr.getString("PreferencesPanel.fetchSizeLabel");
    6
    commitRecordCountLabel = new JLabel(commitLabel);
    6
    commitRecordCountLabel = new JLabel(commitLabel);
    6
    selectFetchSizeLabel = new JLabel(bsLabel);
    Differences
    Expression1Expression2Difference
    commitRecordCountLabelselectFetchSizeLabelVARIABLE_NAME_MISMATCH
    commitLabelbsLabelVARIABLE_NAME_MISMATCH
    6
    selectFetchSizeLabel = new JLabel(bsLabel);
    7
    commitRecordCountLabel.setHorizontalAlignment(JLabel.RIGHT);
    7
    commitRecordCountLabel.setHorizontalAlignment(JLabel.RIGHT);
    7
    selectFetchSizeLabel.setHorizontalAlignment(JLabel.LEFT);
    Differences
    Expression1Expression2Difference
    RIGHTLEFTVARIABLE_NAME_MISMATCH
    commitRecordCountLabelselectFetchSizeLabelVARIABLE_NAME_MISMATCH
    7
    selectFetchSizeLabel.setHorizontalAlignment(JLabel.LEFT);
    8
    String commitlabelToolTipText = s_stringMgr.getString("PreferencesPanel.commitRecordCountToolTip");
    8
    String commitlabelToolTipText = s_stringMgr.getString("PreferencesPanel.commitRecordCountToolTip");
    8
    String labelToolTipText = s_stringMgr.getString("PreferencesPanel.fetchSizeToolTip");
    Differences
    Expression1Expression2Difference
    commitlabelToolTipTextlabelToolTipTextVARIABLE_NAME_MISMATCH
    "PreferencesPanel.commitRecordCountToolTip""PreferencesPanel.fetchSizeToolTip"LITERAL_VALUE_MISMATCH
    8
    String labelToolTipText = s_stringMgr.getString("PreferencesPanel.fetchSizeToolTip");
    9
    commitRecordCountLabel.setToolTipText(commitlabelToolTipText);
    9
    commitRecordCountLabel.setToolTipText(commitlabelToolTipText);
    9
    selectFetchSizeLabel.setToolTipText(labelToolTipText);
    Differences
    Expression1Expression2Difference
    commitlabelToolTipTextlabelToolTipTextVARIABLE_NAME_MISMATCH
    commitRecordCountLabelselectFetchSizeLabelVARIABLE_NAME_MISMATCH
    9
    selectFetchSizeLabel.setToolTipText(labelToolTipText);
    10
    panel.add(commitRecordCountLabel, c);
    10
    panel.add(commitRecordCountLabel, c);
    10
    panel.add(selectFetchSizeLabel, c);
    Differences
    Expression1Expression2Difference
    commitRecordCountLabelselectFetchSizeLabelVARIABLE_NAME_MISMATCH
    10
    panel.add(selectFetchSizeLabel, c);
    Precondition Violations (0)
    Row Violation