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);
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);
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 addFetchSizeLabel(JPanel, int, int) Method name: void addRecordCountLabel(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 bsLabel = 
5
        String commitLabel = 
6
            s_stringMgr.getString("PreferencesPanel.fetchSizeLabel");
6
            s_stringMgr.getString("PreferencesPanel.
7
        selectFetchSize
7
commitRecordCountLabel");
8
Label = new JLabel(bsLabel);
8
        commitRecordCountLabel = new JLabel(commitLabel);
9
        selectFetchSizeLabel.setHorizontalAlignment(JLabel.LEFT);
9
        commitRecordCountLabel.setHorizontalAlignment(JLabel.RIGHT);
10
        String labelToolTipText = 
10
        String commitlabelToolTipText = 
11
            s_stringMgr.getString("PreferencesPanel.fetchSizeToolTip");
11
            s_stringMgr.getString("PreferencesPanel.commitRecordCountToolTip");
12
        selectFetchSizeLabel.setToolTipText(labelToolTipText);
12
        commitRecordCountLabel.setToolTipText(commitlabelToolTipText);
13
        panel.add(selectFetchSizeLabel, c);
13
        panel.add(commitRecordCountLabel, 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 bsLabel = s_stringMgr.getString("PreferencesPanel.fetchSizeLabel");
    5
    String bsLabel = s_stringMgr.getString("PreferencesPanel.fetchSizeLabel");
    5
    String commitLabel = s_stringMgr.getString("PreferencesPanel.commitRecordCountLabel");
    Differences
    Expression1Expression2Difference
    bsLabelcommitLabelVARIABLE_NAME_MISMATCH
    "PreferencesPanel.fetchSizeLabel""PreferencesPanel.commitRecordCountLabel"LITERAL_VALUE_MISMATCH
    5
    String commitLabel = s_stringMgr.getString("PreferencesPanel.commitRecordCountLabel");
    6
    selectFetchSizeLabel = new JLabel(bsLabel);
    6
    selectFetchSizeLabel = new JLabel(bsLabel);
    6
    commitRecordCountLabel = new JLabel(commitLabel);
    Differences
    Expression1Expression2Difference
    selectFetchSizeLabelcommitRecordCountLabelVARIABLE_NAME_MISMATCH
    bsLabelcommitLabelVARIABLE_NAME_MISMATCH
    6
    commitRecordCountLabel = new JLabel(commitLabel);
    7
    selectFetchSizeLabel.setHorizontalAlignment(JLabel.LEFT);
    7
    selectFetchSizeLabel.setHorizontalAlignment(JLabel.LEFT);
    7
    commitRecordCountLabel.setHorizontalAlignment(JLabel.RIGHT);
    Differences
    Expression1Expression2Difference
    LEFTRIGHTVARIABLE_NAME_MISMATCH
    selectFetchSizeLabelcommitRecordCountLabelVARIABLE_NAME_MISMATCH
    7
    commitRecordCountLabel.setHorizontalAlignment(JLabel.RIGHT);
    8
    String labelToolTipText = s_stringMgr.getString("PreferencesPanel.fetchSizeToolTip");
    8
    String labelToolTipText = s_stringMgr.getString("PreferencesPanel.fetchSizeToolTip");
    8
    String commitlabelToolTipText = s_stringMgr.getString("PreferencesPanel.commitRecordCountToolTip");
    Differences
    Expression1Expression2Difference
    labelToolTipTextcommitlabelToolTipTextVARIABLE_NAME_MISMATCH
    "PreferencesPanel.fetchSizeToolTip""PreferencesPanel.commitRecordCountToolTip"LITERAL_VALUE_MISMATCH
    8
    String commitlabelToolTipText = s_stringMgr.getString("PreferencesPanel.commitRecordCountToolTip");
    9
    selectFetchSizeLabel.setToolTipText(labelToolTipText);
    9
    selectFetchSizeLabel.setToolTipText(labelToolTipText);
    9
    commitRecordCountLabel.setToolTipText(commitlabelToolTipText);
    Differences
    Expression1Expression2Difference
    labelToolTipTextcommitlabelToolTipTextVARIABLE_NAME_MISMATCH
    selectFetchSizeLabelcommitRecordCountLabelVARIABLE_NAME_MISMATCH
    9
    commitRecordCountLabel.setToolTipText(commitlabelToolTipText);
    10
    panel.add(selectFetchSizeLabel, c);
    10
    panel.add(selectFetchSizeLabel, c);
    10
    panel.add(commitRecordCountLabel, c);
    Differences
    Expression1Expression2Difference
    selectFetchSizeLabelcommitRecordCountLabelVARIABLE_NAME_MISMATCH
    10
    panel.add(commitRecordCountLabel, c);
    Precondition Violations (0)
    Row Violation