sendHtmlMultipartCheckBox = new CheckBoxWithMnemonic(MailResourceLoader .getString("dialog", "general", "send_html_multipart")); forwardLabel = new LabelWithMnemonic(MailResourceLoader.getString( "dialog", "general", "forward_as")); String[] items = { MailResourceLoader.getString("dialog", "general", "forward_as_attachment"), MailResourceLoader.getString("dialog", "general", "forward_as_quoted") }; forwardComboBox = new JComboBox(items);
includeSubfolderButton = new CheckBoxWithMnemonic(MailResourceLoader .getString("dialog", "filter", "include_subfolders")); nameLabel = new LabelWithMnemonic(MailResourceLoader.getString( "dialog", "filter", "execute_actions")); String[] cond = { MailResourceLoader .getString("dialog", "filter", "all_criteria"), MailResourceLoader .getString("dialog", "filter", "any_criteria") }; condList = new JComboBox(cond);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/general/MailOptionsDialog.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/search/SearchFrame.java
Method name: void initComponents() Method name: void initComponents()
Number of AST nodes: 4 Number of AST nodes: 4
1
sendHtmlMultipartCheckBox = new CheckBoxWithMnemonic(MailResourceLoader
1
includeSubfolderButton = new CheckBoxWithMnemonic(MailResourceLoader
2
				.getString("dialog", "general", "send_html_multipart"));
2
				.getString("dialog", "filter", "include_subfolders"));
3
		forwardLabel = new LabelWithMnemonic(MailResourceLoader.getString(
3
		nameLabel = new LabelWithMnemonic(MailResourceLoader.getString(
4
				"dialog", "general", "forward_as"));
4
				"dialog", "filter", "execute_actions"));
5
		String[] items = {
5
		String[] cond = {
6
				MailResourceLoader
6
				MailResourceLoader
7
.getString("dialog", "general",
7
						.getString("dialog", "
8
						"forward_as_attachment"),
8
filter", "all_criteria"),
9
				MailResourceLoader
9
				MailResourceLoader
10
.getString("dialog", "general",
10
						.getString("dialog", "
11
						"forward_as_quoted") };
11
filter", "any_criteria") };
12
		forwardComboBox = new JComboBox(items);
12
		condList = new JComboBox(cond);
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 comparisons7
  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
    14
    sendHtmlMultipartCheckBox = new CheckBoxWithMnemonic(MailResourceLoader.getString("dialog", "general", "send_html_multipart"));
    14
    sendHtmlMultipartCheckBox = new CheckBoxWithMnemonic(MailResourceLoader.getString("dialog", "general", "send_html_multipart"));
    6
    includeSubfolderButton = new CheckBoxWithMnemonic(MailResourceLoader.getString("dialog", "filter", "include_subfolders"));
    Differences
    Expression1Expression2Difference
    sendHtmlMultipartCheckBoxincludeSubfolderButtonVARIABLE_NAME_MISMATCH
    org.columba.core.gui.base.CheckBoxWithMnemonicjavax.swing.JCheckBoxSUBCLASS_TYPE_MISMATCH
    "general""filter"LITERAL_VALUE_MISMATCH
    "send_html_multipart""include_subfolders"LITERAL_VALUE_MISMATCH
    6
    includeSubfolderButton = new CheckBoxWithMnemonic(MailResourceLoader.getString("dialog", "filter", "include_subfolders"));
    15
    forwardLabel = new LabelWithMnemonic(MailResourceLoader.getString("dialog", "general", "forward_as"));
    15
    forwardLabel = new LabelWithMnemonic(MailResourceLoader.getString("dialog", "general", "forward_as"));
    7
    nameLabel = new LabelWithMnemonic(MailResourceLoader.getString("dialog", "filter", "execute_actions"));
    Differences
    Expression1Expression2Difference
    forwardLabelnameLabelVARIABLE_NAME_MISMATCH
    org.columba.core.gui.base.LabelWithMnemonicjavax.swing.JLabelSUBCLASS_TYPE_MISMATCH
    "general""filter"LITERAL_VALUE_MISMATCH
    "forward_as""execute_actions"LITERAL_VALUE_MISMATCH
    7
    nameLabel = new LabelWithMnemonic(MailResourceLoader.getString("dialog", "filter", "execute_actions"));
    16
    String[] items = {MailResourceLoader.getString("dialog", "general", "forward_as_attachment"), MailResourceLoader.getString("dialog", "general", "forward_as_quoted")};
    16
    String[] items = {MailResourceLoader.getString("dialog", "general", "forward_as_attachment"), MailResourceLoader.getString("dialog", "general", "forward_as_quoted")};
    8
    String[] cond = {MailResourceLoader.getString("dialog", "filter", "all_criteria"), MailResourceLoader.getString("dialog", "filter", "any_criteria")};
    Differences
    Expression1Expression2Difference
    itemscondVARIABLE_NAME_MISMATCH
    "general""filter"LITERAL_VALUE_MISMATCH
    "forward_as_attachment""all_criteria"LITERAL_VALUE_MISMATCH
    "general""filter"LITERAL_VALUE_MISMATCH
    "forward_as_quoted""any_criteria"LITERAL_VALUE_MISMATCH
    8
    String[] cond = {MailResourceLoader.getString("dialog", "filter", "all_criteria"), MailResourceLoader.getString("dialog", "filter", "any_criteria")};
    17
    forwardComboBox = new JComboBox(items);
    17
    forwardComboBox = new JComboBox(items);
    9
    condList = new JComboBox(cond);
    Differences
    Expression1Expression2Difference
    forwardComboBoxcondListVARIABLE_NAME_MISMATCH
    itemscondVARIABLE_NAME_MISMATCH
    9
    condList = new JComboBox(cond);
    Precondition Violations (0)
    Row Violation