if (bodyPart != null) {
// setup charset and html
initMimeHeader(bodyPart);
Integer[] address = bodyPart.getAddress();
String quotedBodyText = createQuotedBody(bodyPart.getHeader(), folder, uids, address);
// debug output
LOG.fine("Quoted body text:\n" + quotedBodyText);
model.setBodyText(quotedBodyText);
}
if (oldFilter != null) {
Filter newFilter = (Filter) oldFilter.clone();
if (showFilterDialog(newFilter)) {
int index = listView.getSelectedRow();
filterList.insert(newFilter, index);
filterList.remove(index + 1);
listView.update(index);
}
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/command/ReplyCommand.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/filter/ConfigFrame.java
|
Method name: void execute(IWorkerStatusController)
|
|
Method name: void editSelectedFilter()
|
Number of AST nodes: 6
|
|
Number of AST nodes: 7
|
|
1 | if (bodyPart != null) {↵ | | 1 | if (oldFilter != null) {↵
|
2 | // setup charset and html↵ | | |
|
3 | initMimeHeader(bodyPart);↵ | | |
|
|
4 | Integer[] address = bodyPart.getAddress();↵ | | |
|
|
5 | String quotedBodyT↵ | | 2 | Filter newFilter = (Filter) oldFilter.clone();↵
|
|
| | | 3 | if (showFilterDialog(newFilter)) {↵
|
6 | ext = createQuotedBody(bodyPart.getHeader(), folder, uids, address);↵ | | 4 | int index = ↵
|
|
7 | // debug output↵ | | |
|
8 | LOG.fine("Quoted body text:\n" + quotedBodyText);↵ | | |
|
|
9 | model.setBodyText(quotedBodyT↵ | | 5 | listView.getSelectedRow();↵
|
| | | 6 | filterList.insert(newFilter, index);↵
|
| | | 7 | filterList.remove(index + 1);↵
|
10 | ext);↵ | | 8 | listView.update(index);↵
|
11 | ↵ | | 9 | }↵
|
12 | } | | 10 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |