GridBagConstraints c = new GridBagConstraints(); c.gridx = col; c.gridy = row; c.insets = new Insets(5,25,0,0); String label = s_stringMgr.getString("PreferencesPanel.delayTablesLabel"); delayTablesLabel = new JLabel(label); delayTablesLabel.setHorizontalAlignment(JLabel.LEFT); panel.add(delayTablesLabel, c);
GridBagConstraints c = new GridBagConstraints(); c.gridx = col; c.gridy = row; c.insets = new Insets(5,25,0,0); String label = s_stringMgr.getString("PreferencesPanel.delayRecordsLabel"); delayRecordsLabel = new JLabel(label); delayRecordsLabel.setHorizontalAlignment(JLabel.LEFT); panel.add(delayRecordsLabel, 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 addDelayTablesLabel(JPanel, int, int) Method name: void addDelayRecordsLabel(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.insets = new Insets(5,25,0,0);
4
        c.insets = new Insets(5,25,0,0);
5
        String label = 
5
        String label = 
6
            s_stringMgr.getString("PreferencesPanel.delayTablesLabel");
6
            s_stringMgr.getString("PreferencesPanel.delayRecordsLabel");
7
        delayTablesLabel = new JLabel(label);
7
        delayRecordsLabel = new JLabel(label);
8
        delayTablesLabel.setHorizontalAlignment(JLabel.LEFT);
8
        delayRecordsLabel.setHorizontalAlignment(JLabel.LEFT);
9
        panel.add(delayTablesLabel, c);
9
        panel.add(delayRecordsLabel, 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 comparisons30
  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.insets = new Insets(5, 25, 0, 0);
    4
    c.insets = new Insets(5, 25, 0, 0);
    5
    String label = s_stringMgr.getString("PreferencesPanel.delayTablesLabel");
    5
    String label = s_stringMgr.getString("PreferencesPanel.delayTablesLabel");
    5
    String label = s_stringMgr.getString("PreferencesPanel.delayRecordsLabel");
    Differences
    Expression1Expression2Difference
    "PreferencesPanel.delayTablesLabel""PreferencesPanel.delayRecordsLabel"LITERAL_VALUE_MISMATCH
    5
    String label = s_stringMgr.getString("PreferencesPanel.delayRecordsLabel");
    6
    delayTablesLabel = new JLabel(label);
    6
    delayTablesLabel = new JLabel(label);
    6
    delayRecordsLabel = new JLabel(label);
    Differences
    Expression1Expression2Difference
    delayTablesLabeldelayRecordsLabelVARIABLE_NAME_MISMATCH
    6
    delayRecordsLabel = new JLabel(label);
    7
    delayTablesLabel.setHorizontalAlignment(JLabel.LEFT);
    7
    delayTablesLabel.setHorizontalAlignment(JLabel.LEFT);
    7
    delayRecordsLabel.setHorizontalAlignment(JLabel.LEFT);
    Differences
    Expression1Expression2Difference
    delayTablesLabeldelayRecordsLabelVARIABLE_NAME_MISMATCH
    7
    delayRecordsLabel.setHorizontalAlignment(JLabel.LEFT);
    8
    panel.add(delayTablesLabel, c);
    8
    panel.add(delayTablesLabel, c);
    8
    panel.add(delayRecordsLabel, c);
    Differences
    Expression1Expression2Difference
    delayTablesLabeldelayRecordsLabelVARIABLE_NAME_MISMATCH
    8
    panel.add(delayRecordsLabel, c);
    Precondition Violations (0)
    Row Violation