if (l != null)
output.addAll(l);
l = new NormalizeRecipientListParser().normalizeRCPTVector(ListBuilder
.createFlatList(getCcList()));
if (l != null)
output.addAll(l);
l = new NormalizeRecipientListParser().normalizeRCPTVector(ListBuilder
.createFlatList(getCcList()));
if (l != null)
output.addAll(l);
l = new NormalizeRecipientListParser().normalizeRCPTVector(ListBuilder
.createFlatList(getBccList()));
if (l != null)
output.addAll(l);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/ComposerModel.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/ComposerModel.java
|
Method name: List getRCPTVector()
|
|
Method name: List getRCPTVector()
|
Number of AST nodes: 5
|
|
Number of AST nodes: 6
|
|
| | | 1 | l = new NormalizeRecipientListParser().normalizeRCPTVector(ListBuilder↵
|
| | | 2 | .createFlatList(getCcList()));↵
|
1 | if (l != null)↵ | | 3 | if (l != null)↵
|
2 | output.addAll(l);↵ | | 4 | output.addAll(l);↵
|
|
3 | l = new NormalizeRecipientListParser().normalizeRCPTVector(ListBuilder↵ | | 5 | l = new NormalizeRecipientListParser().normalizeRCPTVector(ListBuilder↵
|
4 | .createFlatList(getCcList()));↵ | | 6 | .createFlatList(getBccList()));↵
|
5 | if (l != null)↵ | | 7 | if (l != null)↵
|
6 | output.addAll(l); | | 8 | output.addAll(l);
|
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.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 15 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 2.8 |
Clone type | Type 3 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
3 | if (l != null) | | 6 | if (l != null) |
4 | | | 7 | |
5 | l = new NormalizeRecipientListParser().normalizeRCPTVector(ListBuilder.createFlatList(getCcList())); | | 5 | l = new NormalizeRecipientListParser().normalizeRCPTVector(ListBuilder.createFlatList(getCcList())); |
| | | 8 | l = new NormalizeRecipientListParser().normalizeRCPTVector(ListBuilder.createFlatList(getBccList())); |
6 | if (l != null) | | 9 | if (l != null) |
7 | | | 10 | |
Precondition Violations (1)
Row |
Violation |
1 | Unmatched statement l=new NormalizeRecipientListParser().normalizeRCPTVector(ListBuilder.createFlatList(getBccList())); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |