if (action.equals("DEFAULT_ACCOUNT")) {
removeAll();
if (defaultAccountCheckBox.isSelected()) {
showDefaultAccountWarning();
} else {
layoutComponents();
}
revalidate();
}
removeAll();
if (defaultAccountCheckBox.isSelected()) {
showDefaultAccountWarning();
} else {
layoutComponents();
}
revalidate();
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/SpecialFoldersPanel.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/OutgoingServerPanel.java
|
Method name: void actionPerformed(ActionEvent)
|
|
Method name: void actionPerformed(ActionEvent)
|
Number of AST nodes: 6
|
|
Number of AST nodes: 5
|
|
1 | if (action.equals("DEFAULT_ACCOUNT")) {↵ | | |
|
2 | removeAll();↵ | | 1 | removeAll();↵
|
|
3 | if (defaultAccountCheckBox.isSelected()) {↵ | | 2 | if (defaultAccountCheckBox.isSelected()) {↵
|
4 | showDefaultAccountWarning();↵ | | 3 | showDefaultAccountWarning();↵
|
5 | } else {↵ | | 4 | } else {↵
|
6 | layoutComponents();↵ | | 5 | layoutComponents();↵
|
7 | }↵ | | 6 | }↵
|
|
8 | revalidate();↵ | | 7 | revalidate();
|
9 | } | | | |
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.3 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 14 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 5 |
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) | 2.6 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
33 | removeAll(); | | 7 | removeAll(); |
34 | if (defaultAccountCheckBox.isSelected()) | | 8 | if (defaultAccountCheckBox.isSelected()) |
35 | showDefaultAccountWarning(); | | 9 | showDefaultAccountWarning(); |
| | | | |
36 | | | 10 | |
37 | revalidate(); | | 11 | revalidate(); |
Precondition Violations (0)
Row |
Violation |