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());
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());
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/headercache/SyncHeaderList.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/pop3/POP3Server.java
Method name: void sync(AbstractMessageFolder, IHeaderList) Method name: ColumbaMessage getMessage(Object, IWorkerStatusController)
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
					header.getAttributes().put("columba.size",
2
			h.getAttributes().put("columba.size",
3
							new Integer(size));
3
 new Integer(size));
4
					// set the attachment flag
4
			// set the attachment flag
5
					header.getAttributes().put("columba.attachment",
5
			h.getAttributes().put("columba.attachment",
6
							header.hasAttachments());
6
 h.hasAttachments());
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons0