MailFolderCommandReference r = new MailFolderCommandReference(srcFolder, uids);
ScoreMessageCommand c = new ScoreMessageCommand(r);
return c;
if (launcher.isFinished()) {
// ok, now the tool is initialized correctly
XmlElement r = getConfiguration(toolID);
File file = new File(r.getAttribute("location"));
return file;
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/filter/plugins/ScoreMessageFilterAction.java
|
|
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/externaltools/ExternalToolsManager.java
|
Method name: ICommand getCommand(IFilterAction, IFolder, Object[])
|
|
Method name: File getLocationOfExternalTool(String)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 4
|
|
1 | MailFolderCommandReference r =↵ | | 1 | if (launcher.isFinished()) {↵
|
2 | new MailFolderCommandReference(srcFolder, uids);↵ | | 2 | // ok, now ↵
|
|
3 | ScoreMessa↵ | | 3 | the tool is initialized correctly↵
|
4 | geCommand c = new ScoreMessageCommand(r);↵ | | 4 | XmlElement r = getCo↵
|
5 | ↵ | | |
|
6 | return c; | | 5 | nfiguration(toolID);↵
|
| | | 6 | File file = new File(r.getAttribute("location"));↵
|
|
| | | 7 | return file;↵
|
| | | 8 | }
|
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 9 |