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);
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);
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
trashLabel = new LabelWithMnemonic(MailResourceLoader.getString(
1
inboxLabel = new LabelWithMnemonic(MailResourceLoader.getString(
2
					"dialog", "account", "trash_folder")); //$NON-NLS-1$			
2
					"dialog", "account", "inbox_folder")); //$NON-NLS-1$
3
			trashButton = new JButton();
3
			inboxButton = new JButton();
4
			trashButton.setActionCommand("TRASH"); //$NON-NLS-1$
4
			inboxButton.setActionCommand("INBOX"); //$NON-NLS-1$
5
			trashButton.addActionListener(this);
5
			inboxButton.addActionListener(this);
6
			trashLabel.setLabelFor(trashButton);
6
			inboxLabel.setLabelFor(inboxButton);
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 comparisons12
  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 fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    26
    trashLabel = new LabelWithMnemonic(MailResourceLoader.getString("dialog", "account", "trash_folder"));
    26
    trashLabel = new LabelWithMnemonic(MailResourceLoader.getString("dialog", "account", "trash_folder"));
    5
    inboxLabel = new LabelWithMnemonic(MailResourceLoader.getString("dialog", "account", "inbox_folder"));
    Differences
    Expression1Expression2Difference
    trashLabelinboxLabelVARIABLE_NAME_MISMATCH
    "trash_folder""inbox_folder"LITERAL_VALUE_MISMATCH
    Preondition Violations
    Expression trashLabel is a field being modified, and thus it cannot be parameterized
    Expression inboxLabel is a field being modified, and thus it cannot be parameterized
    5
    inboxLabel = new LabelWithMnemonic(MailResourceLoader.getString("dialog", "account", "inbox_folder"));
    27
    trashButton = new JButton();
    27
    trashButton = new JButton();
    6
    inboxButton = new JButton();
    Differences
    Expression1Expression2Difference
    trashButtoninboxButtonVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression trashButton is a field being modified, and thus it cannot be parameterized
    Expression inboxButton is a field being modified, and thus it cannot be parameterized
    6
    inboxButton = new JButton();
    28
    trashButton.setActionCommand("TRASH");
    28
    trashButton.setActionCommand("TRASH");
    7
    inboxButton.setActionCommand("INBOX");
    Differences
    Expression1Expression2Difference
    "TRASH""INBOX"LITERAL_VALUE_MISMATCH
    trashButtoninboxButtonVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression trashButton cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression inboxButton cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7
    inboxButton.setActionCommand("INBOX");
    29
    trashButton.addActionListener(this);
    29
    trashButton.addActionListener(this);
    8
    inboxButton.addActionListener(this);
    Differences
    Expression1Expression2Difference
    trashButtoninboxButtonVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression trashButton cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression inboxButton cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8
    inboxButton.addActionListener(this);
    30
    trashLabel.setLabelFor(trashButton);
    30
    trashLabel.setLabelFor(trashButton);
    9
    inboxLabel.setLabelFor(inboxButton);
    Differences
    Expression1Expression2Difference
    trashButtoninboxButtonVARIABLE_NAME_MISMATCH
    trashLabelinboxLabelVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression trashButton cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression inboxButton cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression trashLabel cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression inboxLabel cannot be parameterized, because it has dependencies to/from statements that will be extracted
    9
    inboxLabel.setLabelFor(inboxButton);
    Precondition Violations (12)
    Row Violation
    1Expression trashLabel is a field being modified, and thus it cannot be parameterized
    2Expression inboxLabel is a field being modified, and thus it cannot be parameterized
    3Expression trashButton is a field being modified, and thus it cannot be parameterized
    4Expression inboxButton is a field being modified, and thus it cannot be parameterized
    5Expression trashButton cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression inboxButton cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression trashButton cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8Expression inboxButton cannot be parameterized, because it has dependencies to/from statements that will be extracted
    9Expression trashButton cannot be parameterized, because it has dependencies to/from statements that will be extracted
    10Expression inboxButton cannot be parameterized, because it has dependencies to/from statements that will be extracted
    11Expression trashLabel cannot be parameterized, because it has dependencies to/from statements that will be extracted
    12Expression inboxLabel cannot be parameterized, because it has dependencies to/from statements that will be extracted