inboxLabel = new LabelWithMnemonic(MailResourceLoader.getString( "dialog", "account", "inbox_folder")); //$NON-NLS-1$ inboxButton = new JButton(); inboxButton.setActionCommand("INBOX"); //$NON-NLS-1$ inboxButton.addActionListener(this); inboxLabel.setLabelFor(inboxButton);
trashLabel = new LabelWithMnemonic(MailResourceLoader.getString( "dialog", "account", "trash_folder")); //$NON-NLS-1$ trashButton = new JButton(); trashButton.setActionCommand("TRASH"); //$NON-NLS-1$ trashButton.addActionListener(this); trashLabel.setLabelFor(trashButton);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/SpecialFoldersPanel.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/SpecialFoldersPanel.java
Method name: void initComponents() Method name: void initComponents()
Number of AST nodes: 5 Number of AST nodes: 5
1
inboxLabel = new LabelWithMnemonic(MailResourceLoader.getString(
1
trashLabel = new LabelWithMnemonic(MailResourceLoader.getString(
2
					"dialog", "account", "inbox_folder")); //$NON-NLS-1$
2
					"dialog", "account", "trash_folder")); //$NON-NLS-1$			
3
			inboxButton = new JButton();
3
			trashButton = new JButton();
4
			inboxButton.setActionCommand("INBOX"); //$NON-NLS-1$
4
			trashButton.setActionCommand("TRASH"); //$NON-NLS-1$
5
			inboxButton.addActionListener(this);
5
			trashButton.addActionListener(this);
6
			inboxLabel.setLabelFor(inboxButton);
6
			trashLabel.setLabelFor(trashButton);
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 the same method
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
    5
    inboxLabel = new LabelWithMnemonic(MailResourceLoader.getString("dialog", "account", "inbox_folder"));
    5
    inboxLabel = new LabelWithMnemonic(MailResourceLoader.getString("dialog", "account", "inbox_folder"));
    26
    trashLabel = new LabelWithMnemonic(MailResourceLoader.getString("dialog", "account", "trash_folder"));
    Differences
    Expression1Expression2Difference
    inboxLabeltrashLabelVARIABLE_NAME_MISMATCH
    "inbox_folder""trash_folder"LITERAL_VALUE_MISMATCH
    26
    trashLabel = new LabelWithMnemonic(MailResourceLoader.getString("dialog", "account", "trash_folder"));
    6
    inboxButton = new JButton();
    6
    inboxButton = new JButton();
    27
    trashButton = new JButton();
    Differences
    Expression1Expression2Difference
    inboxButtontrashButtonVARIABLE_NAME_MISMATCH
    27
    trashButton = new JButton();
    7
    inboxButton.setActionCommand("INBOX");
    7
    inboxButton.setActionCommand("INBOX");
    28
    trashButton.setActionCommand("TRASH");
    Differences
    Expression1Expression2Difference
    "INBOX""TRASH"LITERAL_VALUE_MISMATCH
    inboxButtontrashButtonVARIABLE_NAME_MISMATCH
    28
    trashButton.setActionCommand("TRASH");
    8
    inboxButton.addActionListener(this);
    8
    inboxButton.addActionListener(this);
    29
    trashButton.addActionListener(this);
    Differences
    Expression1Expression2Difference
    inboxButtontrashButtonVARIABLE_NAME_MISMATCH
    29
    trashButton.addActionListener(this);
    9
    inboxLabel.setLabelFor(inboxButton);
    9
    inboxLabel.setLabelFor(inboxButton);
    30
    trashLabel.setLabelFor(trashButton);
    Differences
    Expression1Expression2Difference
    inboxButtontrashButtonVARIABLE_NAME_MISMATCH
    inboxLabeltrashLabelVARIABLE_NAME_MISMATCH
    30
    trashLabel.setLabelFor(trashButton);
    Precondition Violations (0)
    Row Violation