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);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.2
Clones locationClones are in the same method
Number of node comparisons15
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)2.8
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    3
    if (l != null)
    6
    if (l != null)
    4
    output.addAll(l);
    7
    output.addAll(l);
    5
    l = new NormalizeRecipientListParser().normalizeRCPTVector(ListBuilder.createFlatList(getCcList()));
    5
    l = new NormalizeRecipientListParser().normalizeRCPTVector(ListBuilder.createFlatList(getCcList()));
                                                                                                                                                                                                                
    8
    l = new NormalizeRecipientListParser().normalizeRCPTVector(ListBuilder.createFlatList(getBccList()));
    Preondition Violations
    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
    8
    l = new NormalizeRecipientListParser().normalizeRCPTVector(ListBuilder.createFlatList(getBccList()));
    6
    if (l != null)
    9
    if (l != null)
    7
    output.addAll(l);
    10
    output.addAll(l);
    Precondition Violations (1)
    Row Violation
    1Unmatched 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