addressLabel.setLabelFor(hostTextField); middlePanel.addTextField(hostTextField); JLabel addressExampleLabel = new JLabel(MailResourceLoader.getString( "dialog", "accountwizard", "example") + "mail.microsoft.com"); middlePanel.addExample(addressExampleLabel);
addressLabel.setLabelFor(hostTextField); middlePanel.addTextField(hostTextField); JLabel addressExampleLabel = new JLabel(MailResourceLoader.getString( "dialog", "accountwizard", "example") + "mail.microsoft.com"); middlePanel.addExample(addressExampleLabel);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/accountwizard/IncomingServerStep.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/accountwizard/OutgoingServerStep.java
Method name: JComponent createComponent() Method name: JComponent createComponent()
Number of AST nodes: 4 Number of AST nodes: 4
1
addressLabel.setLabelFor(hostTextField);
1
addressLabel.setLabelFor(hostTextField);
2
        middlePanel.addTextField(hostTextField);
2
        middlePanel.addTextField(hostTextField);
3
        JLabel addressExampleLabel = new JLabel(MailResourceLoader.getString(
3
        JLabel addressExampleLabel = new JLabel(MailResourceLoader.getString(
4
                    "dialog", "accountwizard", "example") +
4
                    "dialog", "accountwizard", "example") +
5
                "mail.microsoft.com");
5
                "mail.microsoft.com");
6
        middlePanel.addExample(addressExampleLabel);
6
        middlePanel.addExample(addressExampleLabel);
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 comparisons10
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements4
    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
    24
    addressLabel.setLabelFor(hostTextField);
    24
    addressLabel.setLabelFor(hostTextField);
    14
    addressLabel.setLabelFor(hostTextField);
    Differences
    Expression1Expression2Difference
    javax.swing.JLabelorg.columba.core.gui.base.LabelWithMnemonicSUBCLASS_TYPE_MISMATCH
    14
    addressLabel.setLabelFor(hostTextField);
    25
    middlePanel.addTextField(hostTextField);
    15
    middlePanel.addTextField(hostTextField);
    26
    JLabel addressExampleLabel = new JLabel(MailResourceLoader.getString("dialog", "accountwizard", "example") + "mail.microsoft.com");
    16
    JLabel addressExampleLabel = new JLabel(MailResourceLoader.getString("dialog", "accountwizard", "example") + "mail.microsoft.com");
    27
    middlePanel.addExample(addressExampleLabel);
    17
    middlePanel.addExample(addressExampleLabel);
    Precondition Violations (0)
    Row Violation