telephoneSeparator = compFactory.createSeparator(bundle .getString("telephoneSeparator.text")); String[] phoneTypes = new String[] { "Business Phone", "Assistant Phone", "Business Fax", "Callback Phone", "Car Phone", "Company Phone", "Home Phone", "Home Fax", "ISDN", "Mobile Phone", "Other Phone", "Other Fax", "Pager", "Primary Phone", "Radio", "Telex", "TTY" }; telephoneComboBox1 = new JComboBox(phoneTypes); telephoneTextField1 = new JTextField(); telephoneComboBox2 = new JComboBox(phoneTypes); telephoneTextField2 = new JTextField(); telephoneComboBox3 = new JComboBox(phoneTypes); telephoneTextField3 = new JTextField(); telephoneComboBox4 = new JComboBox(phoneTypes); telephoneTextField4 = new JTextField();
emailSeparator = compFactory.createSeparator(bundle .getString("emailSeparator.text")); String[] emailTypes = new String[] { "Work", "Home", "Other" }; emailComboBox1 = new JComboBox(emailTypes); emailTextField1 = new JTextField(); emailComboBox2 = new JComboBox(emailTypes); emailTextField2 = new JTextField(); emailComboBox3 = new JComboBox(emailTypes); emailTextField3 = new JTextField(); emailComboBox4 = new JComboBox(emailTypes); emailTextField4 = new JTextField();
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/dialog/contact/ContactEditorDialog.java File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/dialog/contact/ContactEditorDialog.java
Method name: void initComponents() Method name: void initComponents()
Number of AST nodes: 10 Number of AST nodes: 10
1
telephoneSeparator = compFactory.createSeparator(bundle
1
emailSeparator = compFactory.createSeparator(bundle
2
				.getString("telephoneSeparator.text"));
2
				.getString("emailSeparator.text"));
3
		String[] phoneTypes = new String[] { "Business Phone",
3
		String[] emailTypes = new String[] { "
4
				"Assistant Phone", "Business Fax", "Callback Phone",
5
				"Car Phone", "Company Phone", "Home Phone", "Home Fax", "ISDN",
6
				"Mobile Phone", "Other Phone", "Other Fax", "Pager",
7
				"Primary Phone", "Radio", "Telex", "TTY" };
8
		telephone
4
Work", "Home", "Other" };
9
ComboBox1 = new JComboBox(phoneTypes);
5
		emailComboBox1 = new JComboBox(emailTypes);
10
		telephoneTextField1 = new JTextField();
6
		emailTextField1 = new JTextField();
11
		telephoneComboBox2 = new JComboBox(phoneTypes);
7
		emailComboBox2 = new JComboBox(emailTypes);
12
		telephoneTextField2 = new JTextField();
8
		emailTextField2 = new JTextField();
13
		telephoneComboBox3 = new JComboBox(phoneTypes);
9
		emailComboBox3 = new JComboBox(emailTypes);
14
		telephoneTextField3 = new JTextField();
10
		emailTextField3 = new JTextField();
15
		telephoneComboBox4 = new JComboBox(phoneTypes);
11
		emailComboBox4 = new JComboBox(emailTypes);
16
		telephoneTextField4 = new JTextField();
12
		emailTextField4 = new JTextField();
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 comparisons46
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements10
    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
    35
    telephoneSeparator = compFactory.createSeparator(bundle.getString("telephoneSeparator.text"));
    35
    telephoneSeparator = compFactory.createSeparator(bundle.getString("telephoneSeparator.text"));
    23
    emailSeparator = compFactory.createSeparator(bundle.getString("emailSeparator.text"));
    Differences
    Expression1Expression2Difference
    telephoneSeparatoremailSeparatorVARIABLE_NAME_MISMATCH
    "telephoneSeparator.text""emailSeparator.text"LITERAL_VALUE_MISMATCH
    23
    emailSeparator = compFactory.createSeparator(bundle.getString("emailSeparator.text"));
    36
    String[] phoneTypes = new String[] {"Business Phone", "Assistant Phone", "Business Fax", "Callback Phone", "Car Phone", "Company Phone", "Home Phone", "Home Fax", "ISDN", "Mobile Phone", "Other Phone", "Other Fax", "Pager", "Primary Phone", "Radio", "Telex", "TTY"};
    36
    String[] phoneTypes = new String[] {"Business Phone", "Assistant Phone", "Business Fax", "Callback Phone", "Car Phone", "Company Phone", "Home Phone", "Home Fax", "ISDN", "Mobile Phone", "Other Phone", "Other Fax", "Pager", "Primary Phone", "Radio", "Telex", "TTY"};
    24
    String[] emailTypes = new String[] {"Work", "Home", "Other"};
    Differences
    Expression1Expression2Difference
    phoneTypesemailTypesVARIABLE_NAME_MISMATCH
    {"Business Phone","Assistant Phone","Business Fax","Callback Phone","Car Phone","Company Phone","Home Phone","Home Fax","ISDN","Mobile Phone","Other Phone","Other Fax","Pager","Primary Phone","Radio","Telex","TTY"}{"Work","Home","Other"}ARRAY_INITIALIZER_EXPRESSION_NUMBER_MISMATCH
    {"Business Phone","Assistant Phone","Business Fax","Callback Phone","Car Phone","Company Phone","Home Phone","Home Fax","ISDN","Mobile Phone","Other Phone","Other Fax","Pager","Primary Phone","Radio","Telex","TTY"}{"Work","Home","Other"}ARRAY_INITIALIZER_MISMATCH
    24
    String[] emailTypes = new String[] {"Work", "Home", "Other"};
    37
    telephoneComboBox1 = new JComboBox(phoneTypes);
    37
    telephoneComboBox1 = new JComboBox(phoneTypes);
    25
    emailComboBox1 = new JComboBox(emailTypes);
    Differences
    Expression1Expression2Difference
    telephoneComboBox1emailComboBox1VARIABLE_NAME_MISMATCH
    phoneTypesemailTypesVARIABLE_NAME_MISMATCH
    25
    emailComboBox1 = new JComboBox(emailTypes);
    38
    telephoneTextField1 = new JTextField();
    38
    telephoneTextField1 = new JTextField();
    26
    emailTextField1 = new JTextField();
    Differences
    Expression1Expression2Difference
    telephoneTextField1emailTextField1VARIABLE_NAME_MISMATCH
    26
    emailTextField1 = new JTextField();
    39
    telephoneComboBox2 = new JComboBox(phoneTypes);
    39
    telephoneComboBox2 = new JComboBox(phoneTypes);
    27
    emailComboBox2 = new JComboBox(emailTypes);
    Differences
    Expression1Expression2Difference
    telephoneComboBox2emailComboBox2VARIABLE_NAME_MISMATCH
    phoneTypesemailTypesVARIABLE_NAME_MISMATCH
    27
    emailComboBox2 = new JComboBox(emailTypes);
    40
    telephoneTextField2 = new JTextField();
    40
    telephoneTextField2 = new JTextField();
    28
    emailTextField2 = new JTextField();
    Differences
    Expression1Expression2Difference
    telephoneTextField2emailTextField2VARIABLE_NAME_MISMATCH
    28
    emailTextField2 = new JTextField();
    41
    telephoneComboBox3 = new JComboBox(phoneTypes);
    41
    telephoneComboBox3 = new JComboBox(phoneTypes);
    29
    emailComboBox3 = new JComboBox(emailTypes);
    Differences
    Expression1Expression2Difference
    telephoneComboBox3emailComboBox3VARIABLE_NAME_MISMATCH
    phoneTypesemailTypesVARIABLE_NAME_MISMATCH
    29
    emailComboBox3 = new JComboBox(emailTypes);
    42
    telephoneTextField3 = new JTextField();
    42
    telephoneTextField3 = new JTextField();
    30
    emailTextField3 = new JTextField();
    Differences
    Expression1Expression2Difference
    telephoneTextField3emailTextField3VARIABLE_NAME_MISMATCH
    30
    emailTextField3 = new JTextField();
    43
    telephoneComboBox4 = new JComboBox(phoneTypes);
    43
    telephoneComboBox4 = new JComboBox(phoneTypes);
    31
    emailComboBox4 = new JComboBox(emailTypes);
    Differences
    Expression1Expression2Difference
    telephoneComboBox4emailComboBox4VARIABLE_NAME_MISMATCH
    phoneTypesemailTypesVARIABLE_NAME_MISMATCH
    31
    emailComboBox4 = new JComboBox(emailTypes);
    44
    telephoneTextField4 = new JTextField();
    44
    telephoneTextField4 = new JTextField();
    32
    emailTextField4 = new JTextField();
    Differences
    Expression1Expression2Difference
    telephoneTextField4emailTextField4VARIABLE_NAME_MISMATCH
    32
    emailTextField4 = new JTextField();
    Precondition Violations (0)
    Row Violation