buttonPanel.setLayout(new GridLayout(1, 3, 6, 0));
buttonPanel.add(okButton);
buttonPanel.add(cancelButton);
buttonPanel.add(helpButton);
bottom.add(buttonPanel, BorderLayout.EAST);
return bottom;
buttonPanel.setLayout(new GridLayout(1, 3, 6, 0));
buttonPanel.add(okButton);
buttonPanel.add(cancelButton);
buttonPanel.add(helpButton);
bottom.add(buttonPanel, BorderLayout.EAST);
return bottom;
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/AccountDialog.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/columns/ColumnConfigDialog.java
|
Method name: JPanel createButtonPanel()
|
|
Method name: JPanel createButtonPanel()
|
Number of AST nodes: 6
|
|
Number of AST nodes: 6
|
|
1 | buttonPanel.setLayout(new GridLayout(1, 3, 6, 0));↵ | | 1 | buttonPanel.setLayout(new GridLayout(1, 3, 6, 0));↵
|
2 | buttonPanel.add(okButton);↵ | | 2 | buttonPanel.add(okButton);↵
|
3 | buttonPanel.add(cancelButton);↵ | | 3 | buttonPanel.add(cancelButton);↵
|
4 | buttonPanel.add(helpButton);↵ | | 4 | buttonPanel.add(helpButton);↵
|
|
5 | bottom.add(buttonPanel, BorderLayout.EAST);↵ | | 5 | bottom.add(buttonPanel, BorderLayout.EAST);↵
|
|
6 | return bottom; | | 6 | return bottom;
|
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 | 36 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 6 |
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 |
15 | buttonPanel.setLayout(new GridLayout(1, 3, 6, 0)); | | 16 | buttonPanel.setLayout(new GridLayout(1, 3, 6, 0)); |
16 | buttonPanel.add(okButton); | | 17 | buttonPanel.add(okButton); |
17 | buttonPanel.add(cancelButton); | | 18 | buttonPanel.add(cancelButton); |
18 | buttonPanel.add(helpButton); | | 19 | buttonPanel.add(helpButton); |
19 | bottom.add(buttonPanel, BorderLayout.EAST); | | 20 | bottom.add(buttonPanel, BorderLayout.EAST); |
20 | return bottom; | | 21 | return bottom; |
Precondition Violations (0)
Row |
Violation |