body = HtmlParser.substituteURL(body);
body = HtmlParser.substituteEmailAddress(body);
// mark quotings with special font
body = DocumentParser.markQuotings(body);
body = HtmlParser.substituteURL(body);
// parse for email addresses and substite with HTML-code
body = HtmlParser.substituteEmailAddress(body);
// parse for quotings and color the darkgray
body = DocumentParser.markQuotings(body);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/command/SaveMessageBodyAsCommand.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/MessageParser.java
|
Method name: void saveMsgBodyAsHtml(boolean, File)
|
|
Method name: String transformTextToHTML(String, String, boolean)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | body = HtmlParser.substituteURL(body);↵ | | 1 | body = HtmlParser.substituteURL(body);↵
|
2 | ↵ | | |
|
| | | 2 | // parse for email addresses and substite with HTML-code↵
|
3 | body = HtmlParser.substituteEmailAddress(body);↵ | | 3 | body = HtmlParser.substituteEmailAddress(body);↵
|
|
4 | // mark quotings with special font↵ | | 4 | // parse for quotings ↵
|
5 | ↵ | | 5 | and color the darkgray↵
|
6 | body = DocumentParser.markQuotings(body); | | 6 | body = DocumentParser.markQuotings(body);
|
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 different classes |
Number of node comparisons | 9 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 3 |
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 | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
6 | body = HtmlParser.substituteURL(body); | | 3 | body = HtmlParser.substituteURL(body); |
7 | body = HtmlParser.substituteEmailAddress(body); | | 4 | body = HtmlParser.substituteEmailAddress(body); |
8 | body = DocumentParser.markQuotings(body); | | 5 | body = DocumentParser.markQuotings(body); |
Precondition Violations (0)
Row |
Violation |