GridBagConstraints c = new GridBagConstraints(); c.gridx = col; c.gridy = row; c.anchor = GridBagConstraints.WEST; String cbLabelStr = s_stringMgr.getString("PreferencesPanel.checkKeywords"); String cbToolTipText = s_stringMgr.getString("PreferencesPanel.checkKeywordsToolTip"); checkKeywordsCheckBox = new JCheckBox(cbLabelStr); checkKeywordsCheckBox.setToolTipText(cbToolTipText); panel.add(checkKeywordsCheckBox, c);
GridBagConstraints c = new GridBagConstraints(); c.gridx = col; c.gridy = row; c.anchor = GridBagConstraints.WEST; String cbLabelStr = s_stringMgr.getString("PreferencesPanel.testColumnNames"); String cbToolTipText = s_stringMgr.getString("PreferencesPanel.testColumnNamesToolTip"); testColumnNamesCheckBox = new JCheckBox(cbLabelStr); testColumnNamesCheckBox.setToolTipText(cbToolTipText); panel.add(testColumnNamesCheckBox, 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 addCheckKeywordsCheckBox(JPanel, int, int) Method name: void addTestColumnNamesCheckBox(JPanel, int, int)
Number of AST nodes: 9 Number of AST nodes: 9
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.anchor = GridBagConstraints.WEST;
4
        c.anchor = GridBagConstraints.WEST;
5
        String cbLabelStr =
5
        String cbLabelStr =
6
            s_stringMgr.getString("PreferencesPanel.checkKeywords");
6
            s_stringMgr.getString("PreferencesPanel.testColumnNames");
7
        String cbToolTipText =
7
        String cbToolTipText =
8
            s_stringMgr.getString("PreferencesPanel.checkKeywordsToolTip");
8
            s_stringMgr.getString("PreferencesPanel.testColumnNamesToolTip");
9
        
9
        
10
        checkKeywordsCheckBox = new JCheckBox(cbLabelStr);
10
testColumnNamesCheckBox = new JCheckBox(cbLabelStr);
11
        checkKeywordsCheckBox.setToolTipText(cbToolTipText);
11
        testColumnNamesCheckBox.setToolTipText(cbToolTipText);
12
        panel.add(checkKeywordsCheckBox, c);
12
        panel.add(testColumnNamesCheckBox, 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 comparisons37
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements9
    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.anchor = GridBagConstraints.WEST;
    4
    c.anchor = GridBagConstraints.WEST;
    5
    String cbLabelStr = s_stringMgr.getString("PreferencesPanel.checkKeywords");
    5
    String cbLabelStr = s_stringMgr.getString("PreferencesPanel.checkKeywords");
    5
    String cbLabelStr = s_stringMgr.getString("PreferencesPanel.testColumnNames");
    Differences
    Expression1Expression2Difference
    "PreferencesPanel.checkKeywords""PreferencesPanel.testColumnNames"LITERAL_VALUE_MISMATCH
    5
    String cbLabelStr = s_stringMgr.getString("PreferencesPanel.testColumnNames");
    6
    String cbToolTipText = s_stringMgr.getString("PreferencesPanel.checkKeywordsToolTip");
    6
    String cbToolTipText = s_stringMgr.getString("PreferencesPanel.checkKeywordsToolTip");
    6
    String cbToolTipText = s_stringMgr.getString("PreferencesPanel.testColumnNamesToolTip");
    Differences
    Expression1Expression2Difference
    "PreferencesPanel.checkKeywordsToolTip""PreferencesPanel.testColumnNamesToolTip"LITERAL_VALUE_MISMATCH
    6
    String cbToolTipText = s_stringMgr.getString("PreferencesPanel.testColumnNamesToolTip");
    7
    checkKeywordsCheckBox = new JCheckBox(cbLabelStr);
    7
    checkKeywordsCheckBox = new JCheckBox(cbLabelStr);
    7
    testColumnNamesCheckBox = new JCheckBox(cbLabelStr);
    Differences
    Expression1Expression2Difference
    checkKeywordsCheckBoxtestColumnNamesCheckBoxVARIABLE_NAME_MISMATCH
    7
    testColumnNamesCheckBox = new JCheckBox(cbLabelStr);
    8
    checkKeywordsCheckBox.setToolTipText(cbToolTipText);
    8
    checkKeywordsCheckBox.setToolTipText(cbToolTipText);
    8
    testColumnNamesCheckBox.setToolTipText(cbToolTipText);
    Differences
    Expression1Expression2Difference
    checkKeywordsCheckBoxtestColumnNamesCheckBoxVARIABLE_NAME_MISMATCH
    8
    testColumnNamesCheckBox.setToolTipText(cbToolTipText);
    9
    panel.add(checkKeywordsCheckBox, c);
    9
    panel.add(checkKeywordsCheckBox, c);
    9
    panel.add(testColumnNamesCheckBox, c);
    Differences
    Expression1Expression2Difference
    checkKeywordsCheckBoxtestColumnNamesCheckBoxVARIABLE_NAME_MISMATCH
    9
    panel.add(testColumnNamesCheckBox, c);
    Precondition Violations (0)
    Row Violation