File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/action/SendLaterAction.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/smtp/command/SendMessageCommand.java | |||
Method name: void actionPerformed(ActionEvent)
|
Method name: void execute(IWorkerStatusController)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (ref2 != null ↵ | 1 | if (ref2 != null↵ | |
2 | && ((IMailbox)ref2.getSourceFolder()).exists(ref2↵ | 2 | && ((IMailbox) ref2.getSourceFolder()).exists(ref2↵ | |
3 | .getUids()[0])) {↵ | 3 | .getUids()[0])) {↵ | |
4 | // mark message as answered↵ | 4 | // mark message as answered↵ | |
5 | ref2.setMarkVariant(MarkMessageCommand.MARK_AS_ANSWERED);↵ | 5 | ref2.setMarkVariant(MarkMessageCommand.MARK_AS_ANSWERED);↵ | |
6 | MarkMessageCommand c1 = new MarkMessageCommand(ref2);↵ | 6 | MarkMessageCommand c1 = new MarkMessageCommand(ref2);↵ | |
7 | CommandProcessor.getInstance().addOp(c1);↵ | 7 | CommandProcessor.getInstance().addOp(c1);↵ | |
8 | } | 8 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.5 |
Clones location | Clones are in different classes |
Number of node comparisons | 17 |
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) | 0.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12 | if (ref2 != null && ((IMailbox)ref2.getSourceFolder()).exists(ref2.getUids()[0])) |
| 34 | if (ref2 != null && ((IMailbox)ref2.getSourceFolder()).exists(ref2.getUids()[0])) | |||||||||||||||||||
13 | ref2.setMarkVariant(MarkMessageCommand.MARK_AS_ANSWERED); |
| 35 | ref2.setMarkVariant(MarkMessageCommand.MARK_AS_ANSWERED); | |||||||||||||||||||
14 | MarkMessageCommand c1 = new MarkMessageCommand(ref2); |
| 36 | MarkMessageCommand c1 = new MarkMessageCommand(ref2); | |||||||||||||||||||
15 | CommandProcessor.getInstance().addOp(c1); | 37 | CommandProcessor.getInstance().addOp(c1); |
Row | Violation |
---|---|
1 | Type org.columba.mail.command.MailFolderCommandReference of variable ref2 does not match with type org.columba.mail.command.IMailFolderCommandReference of variable ref2 |
2 | Type org.columba.mail.command.MailFolderCommandReference of variable ref2 does not match with type org.columba.mail.command.IMailFolderCommandReference of variable ref2 |
3 | Type org.columba.mail.command.MailFolderCommandReference of variable ref2 does not match with type org.columba.mail.command.IMailFolderCommandReference of variable ref2 |
4 | Type org.columba.mail.command.MailFolderCommandReference of variable ref2 does not match with type org.columba.mail.command.IMailFolderCommandReference of variable ref2 |
5 | Type org.columba.mail.command.MailFolderCommandReference of variable ref2 does not match with type org.columba.mail.command.IMailFolderCommandReference of variable ref2 |