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));
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/profiles/ProfileChooserDialog.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/subscribe/SubscribeDialog.java
|
Method name: void layoutComponents()
|
|
Method name: void initComponents()
|
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 | ↵ | | |
|
7 | ↵ | | |
|
8 | // centerpanel↵ | | 6 | // centerpanel↵
|
9 | JPanel centerPanel = new JPanel(new BorderLayout());↵ | | 7 | JPanel centerPanel = new JPanel(new BorderLayout());↵
|
10 | centerPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 6)); | | 8 | centerPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 6));
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 29 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 7 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
31 | glue = Box.createVerticalGlue(); | | 46 | glue = Box.createVerticalGlue(); |
32 | c.fill = GridBagConstraints.BOTH; | | 47 | c.fill = GridBagConstraints.BOTH; |
33 | c.weighty = 1.0; | | 48 | c.weighty = 1.0; |
34 | gridBagLayout.setConstraints(glue, c); | | 49 | gridBagLayout.setConstraints(glue, c); |
35 | eastPanel.add(glue); | | 50 | eastPanel.add(glue); |
36 | JPanel centerPanel = new JPanel(new BorderLayout()); | | 51 | JPanel centerPanel = new JPanel(new BorderLayout()); |
37 | centerPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 6)); | | 52 | centerPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 6)); |
Precondition Violations (0)
Row |
Violation |