builder.add(toLabel, cc.xy(1, y)); y += 2; builder.add(new JScrollPane(toList), cc.xy(1, y));
builder.add(bccLabel, cc.xy(1, y)); y += 2; builder.add(new JScrollPane(bccList), cc.xy(1, y));
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/contact/SelectAddressDialog.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/contact/SelectAddressDialog.java
Method name: JPanel createRecipientsPanel() Method name: JPanel createRecipientsPanel()
Number of AST nodes: 3 Number of AST nodes: 3
1
builder.add(toLabel, cc.xy(1, y));
1
builder.add(bccLabel, cc.xy(1, y));
2
		y += 2;
2
		y += 2;
3
		builder.add(new JScrollPane(toList), cc.xy(1, y));
3
		builder.add(new JScrollPane(bccList), cc.xy(1, y));
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.0
Clones locationClones are in the same method
Number of node comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    6
    builder.add(toLabel, cc.xy(1, y));
    6
    builder.add(toLabel, cc.xy(1, y));
    14
    builder.add(bccLabel, cc.xy(1, y));
    Differences
    Expression1Expression2Difference
    toLabelbccLabelVARIABLE_NAME_MISMATCH
    14
    builder.add(bccLabel, cc.xy(1, y));
    7
    y += 2;
    15
    y += 2;
    8
    builder.add(new JScrollPane(toList), cc.xy(1, y));
    8
    builder.add(new JScrollPane(toList), cc.xy(1, y));
    16
    builder.add(new JScrollPane(bccList), cc.xy(1, y));
    Differences
    Expression1Expression2Difference
    toListbccListVARIABLE_NAME_MISMATCH
    16
    builder.add(new JScrollPane(bccList), cc.xy(1, y));
    Precondition Violations (1)
    Row Violation
    1Clone fragment #1 returns variables y , while Clone fragment #2 returns variables