middlePanel.addTextField(sourceButton); middlePanel.addExample(new JLabel()); LabelWithMnemonic destinationLabel = new LabelWithMnemonic(AddressbookResourceLoader.getString( "dialog", "addressbookimport", "destination")); middlePanel.addLabel(destinationLabel); destinationButton = new JButton("...");
middlePanel.addTextField(sourceButton); middlePanel.addExample(new JLabel()); LabelWithMnemonic destinationLabel = new LabelWithMnemonic(MailResourceLoader.getString( "dialog", "mailboximport", "destination")); middlePanel.addLabel(destinationLabel); destinationButton = new JButton("...");
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/dialog/importfilter/LocationStep.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/mailboximport/LocationStep.java
Method name: JComponent createComponent() Method name: JComponent createComponent()
Number of AST nodes: 5 Number of AST nodes: 5
1
middlePanel.addTextField(sourceButton);
1
middlePanel.addTextField(sourceButton);
2
        middlePanel.addExample(new JLabel());
2
        middlePanel.addExample(new JLabel());
3
        LabelWithMnemonic destinationLabel = new LabelWithMnemonic(AddressbookResourceLoader.getString(
3
        LabelWithMnemonic destinationLabel = new LabelWithMnemonic(MailResourceLoader.getString(
4
                    "dialog", "addressbookimport", "destination"));
4
                    "dialog", "mailboximport", "destination"));
5
        middlePanel.addLabel(destinationLabel);
5
        middlePanel.addLabel(destinationLabel);
6
        destinationButton = new JButton("...");
6
        destinationButton = new JButton("...");
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons12
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements5
    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
    11
    middlePanel.addTextField(sourceButton);
    11
    middlePanel.addTextField(sourceButton);
    12
    middlePanel.addExample(new JLabel());
    12
    middlePanel.addExample(new JLabel());
    13
    LabelWithMnemonic destinationLabel = new LabelWithMnemonic(AddressbookResourceLoader.getString("dialog", "addressbookimport", "destination"));
    13
    LabelWithMnemonic destinationLabel = new LabelWithMnemonic(AddressbookResourceLoader.getString("dialog", "addressbookimport", "destination"));
    13
    LabelWithMnemonic destinationLabel = new LabelWithMnemonic(MailResourceLoader.getString("dialog", "mailboximport", "destination"));
    Differences
    Expression1Expression2Difference
    "addressbookimport""mailboximport"LITERAL_VALUE_MISMATCH
    org.columba.addressbook.util.AddressbookResourceLoaderorg.columba.mail.util.MailResourceLoaderSUBCLASS_TYPE_MISMATCH
    13
    LabelWithMnemonic destinationLabel = new LabelWithMnemonic(MailResourceLoader.getString("dialog", "mailboximport", "destination"));
    14
    middlePanel.addLabel(destinationLabel);
    14
    middlePanel.addLabel(destinationLabel);
    15
    destinationButton = new JButton("...");
    15
    destinationButton = new JButton("...");
    Precondition Violations (0)
    Row Violation