int size = Math.max(source.length() / 1024, 1);
h.getAttributes().put("columba.size", new Integer(size));
// set the attachment flag
h.getAttributes().put("columba.attachment", h.hasAttachments());
int size = Math.max(source.length() / 1024, 1);
header.getAttributes().put("columba.size",
new Integer(size));
// set the attachment flag
header.getAttributes().put("columba.attachment",
header.hasAttachments());
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/pop3/POP3Server.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/headercache/SyncHeaderList.java
|
Method name: ColumbaMessage getMessage(Object, IWorkerStatusController)
|
|
Method name: void sync(AbstractMessageFolder, IHeaderList)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | int size = Math.max(source.length() / 1024, 1);↵ | | 1 | int size = Math.max(source.length() / 1024, 1);↵
|
2 | h.getAttributes().put("columba.size", ↵ | | 2 | header.getAttributes().put("columba.size",↵
|
3 | new Integer(size));↵ | | 3 | new Integer(size));↵
|
|
4 | // set the attachment flag↵ | | 4 | // set the attachment flag↵
|
5 | h.getAttributes().put("columba.attachment", h↵ | | 5 | header.getAttributes().put("columba.attachment",↵
|
6 | .hasAttachments()); | | 6 | header.hasAttachments());
|
See real code fragment |
|
See real code fragment |
Summary
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 0 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 0 |
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 | Unknown type |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
Precondition Violations (0)
Row |
Violation |