glue = Box.createVerticalGlue(); c.fill = GridBagConstraints.BOTH; c.weighty = 1.0; gridBagLayout.setConstraints(glue, c); eastPanel.add(glue); // centerpanel JPanel centerPanel = new JPanel(new BorderLayout()); centerPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 5));
glue = Box.createVerticalGlue(); c.fill = GridBagConstraints.BOTH; c.weighty = 1.0; gridBagLayout.setConstraints(glue, c); eastPanel.add(glue); // centerpanel JPanel centerPanel = new JPanel(new BorderLayout()); centerPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 6));
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/plugin/PluginManagerDialog.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/profiles/ProfileChooserDialog.java
Method name: void initComponents() Method name: void layoutComponents()
Number of AST nodes: 7 Number of AST nodes: 7
1
glue = Box.createVerticalGlue();
1
glue = Box.createVerticalGlue();
2
		c.fill = GridBagConstraints.BOTH;
2
        c.fill = GridBagConstraints.BOTH;
3
		c.weighty = 1.0;
3
        c.weighty = 1.0;
4
		gridBagLayout.setConstraints(glue, c);
4
        gridBagLayout.setConstraints(glue, c);
5
		eastPanel.add(glue);
5
        eastPanel.add(glue);
6
		
6
        
7
// centerpanel
7
        // centerpanel
8
		JPanel centerPanel = new JPanel(new BorderLayout());
8
        JPanel centerPanel = new JPanel(new BorderLayout());
9
		centerPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 5));
9
        centerPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 6));
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 in different classes having the same super class
Number of node comparisons29
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements7
    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
    63
    glue = Box.createVerticalGlue();
    31
    glue = Box.createVerticalGlue();
    64
    c.fill = GridBagConstraints.BOTH;
    32
    c.fill = GridBagConstraints.BOTH;
    65
    c.weighty = 1.0;
    33
    c.weighty = 1.0;
    66
    gridBagLayout.setConstraints(glue, c);
    34
    gridBagLayout.setConstraints(glue, c);
    67
    eastPanel.add(glue);
    35
    eastPanel.add(glue);
    68
    JPanel centerPanel = new JPanel(new BorderLayout());
    36
    JPanel centerPanel = new JPanel(new BorderLayout());
    69
    centerPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 5));
    69
    centerPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 5));
    37
    centerPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 6));
    Differences
    Expression1Expression2Difference
    56LITERAL_VALUE_MISMATCH
    37
    centerPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 6));
    Precondition Violations (0)
    Row Violation