File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/IncomingServerPanel.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/OutgoingServerPanel.java | |||
Method name: void updateComponents(boolean)
|
Method name: void updateComponents(boolean)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | defaultAccountCheckBox.setEnabled(MailConfig.getInstance()↵ | 1 | defaultAccountCheckBox.setEnabled(MailConfig.getInstance()↵ | |
2 | .getAccountList().getDefaultAccountUid() != accountItem↵ | 2 | .getAccountList().getDefaultAccountUid() != accountItem↵ | |
3 | .getInteger(IncomingItem.UID));↵ | 3 | .getInteger(OutgoingItem.UID));↵ | |
4 | if (defaultAccountCheckBox.isEnabled()↵ | 4 | if (defaultAccountCheckBox.isEnabled()↵ | |
5 | && defaultAccountCheckBox.isSelected()) {↵ | 5 | && defaultAccountCheckBox.isSelected()) {↵ | |
6 | showDefaultAccountWarning();↵ | 6 | showDefaultAccountWarning();↵ | |
7 | } else {↵ | 7 | } else {↵ | |
8 | layoutComponents();↵ | 8 | layoutComponents();↵ | |
9 | } | 9 |
| |
See real code fragment | See real code fragment |
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.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 11 |
Number of mapped statements | 4 |
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) | 1.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
18 | defaultAccountCheckBox.setEnabled(MailConfig.getInstance().getAccountList().getDefaultAccountUid() != accountItem.getInteger(IncomingItem.UID)); |
| 22 | defaultAccountCheckBox.setEnabled(MailConfig.getInstance().getAccountList().getDefaultAccountUid() != accountItem.getInteger(OutgoingItem.UID)); | ||||||||||
19 | if (defaultAccountCheckBox.isEnabled() && defaultAccountCheckBox.isSelected()) | 23 | if (defaultAccountCheckBox.isEnabled() && defaultAccountCheckBox.isSelected()) | |||||||||||
20 | showDefaultAccountWarning(); | 24 | showDefaultAccountWarning(); | |||||||||||
else | else | |||||||||||||
21 | layoutComponents(); | 25 | layoutComponents(); |
Row | Violation |
---|