int uid = accountItem.getUid();
POP3Server server = POP3ServerCollection.getInstance().uidGet(
uid);
// update configuration
server.updateConfig();
int uid = accountItem.getUid();
IMAPRootFolder folder = (IMAPRootFolder) FolderTreeModel
.getInstance().getImapFolder(uid);
folder.updateConfiguration();
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/account/AccountDialog.java
|
Method name: void actionPerformed(ActionEvent)
|
|
Method name: void actionPerformed(ActionEvent)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | int uid = accountItem.getUid();↵ | | 1 | int uid = accountItem.getUid();↵
|
|
2 | POP3Server server = POP3ServerCollection↵ | | 2 | IMAPRootFolder folder = (IMAPRootFolder) FolderTreeModel↵
|
3 | .getInstance().uidGet(↵ | | 3 | .getInstance().↵
|
4 | uid);↵ | | 4 | getImapFolder(uid);↵
|
5 | // update configuration↵ | | 5 | folder.updateConfiguration↵
|
6 | server.updateConfig(); | | 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 the same method |
Number of node comparisons | 9 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
12 | int uid = accountItem.getUid(); | | 15 | int uid = accountItem.getUid(); |
13 | POP3Server server = POP3ServerCollection.getInstance().uidGet(uid); | | | |
14 | server.updateConfig(); | | | |
| | | 16 | IMAPRootFolder folder = (IMAPRootFolder)FolderTreeModel.getInstance().getImapFolder(uid); |
| | | 17 | folder.updateConfiguration(); |
Precondition Violations (0)
Row |
Violation |