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 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 comparisons46
  1. {Non-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
    Preondition Violations
    Expression telephoneSeparator is a field being modified, and thus it cannot be parameterized
    Expression emailSeparator is a field being modified, and thus it cannot be parameterized
    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
    24
    String[] emailTypes = new String[] {"Work", "Home", "Other"};
    37
    telephoneComboBox1 = new JComboBox(phoneTypes);
    37
    telephoneComboBox1 = new JComboBox(phoneTypes);
    31
    emailComboBox4 = new JComboBox(emailTypes);
    Differences
    Expression1Expression2Difference
    telephoneComboBox1emailComboBox4VARIABLE_NAME_MISMATCH
    phoneTypesemailTypesVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression telephoneComboBox1 is a field being modified, and thus it cannot be parameterized
    Expression emailComboBox4 is a field being modified, and thus it cannot be parameterized
    31
    emailComboBox4 = new JComboBox(emailTypes);
    38
    telephoneTextField1 = new JTextField();
    38
    telephoneTextField1 = new JTextField();
    32
    emailTextField4 = new JTextField();
    Differences
    Expression1Expression2Difference
    telephoneTextField1emailTextField4VARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression telephoneTextField1 is a field being modified, and thus it cannot be parameterized
    Expression emailTextField4 is a field being modified, and thus it cannot be parameterized
    32
    emailTextField4 = new JTextField();
    39
    telephoneComboBox2 = new JComboBox(phoneTypes);
    39
    telephoneComboBox2 = new JComboBox(phoneTypes);
    29
    emailComboBox3 = new JComboBox(emailTypes);
    Differences
    Expression1Expression2Difference
    telephoneComboBox2emailComboBox3VARIABLE_NAME_MISMATCH
    phoneTypesemailTypesVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression telephoneComboBox2 is a field being modified, and thus it cannot be parameterized
    Expression emailComboBox3 is a field being modified, and thus it cannot be parameterized
    29
    emailComboBox3 = new JComboBox(emailTypes);
    40
    telephoneTextField2 = new JTextField();
    40
    telephoneTextField2 = new JTextField();
    30
    emailTextField3 = new JTextField();
    Differences
    Expression1Expression2Difference
    telephoneTextField2emailTextField3VARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression telephoneTextField2 is a field being modified, and thus it cannot be parameterized
    Expression emailTextField3 is a field being modified, and thus it cannot be parameterized
    30
    emailTextField3 = new JTextField();
    41
    telephoneComboBox3 = new JComboBox(phoneTypes);
    41
    telephoneComboBox3 = new JComboBox(phoneTypes);
    27
    emailComboBox2 = new JComboBox(emailTypes);
    Differences
    Expression1Expression2Difference
    telephoneComboBox3emailComboBox2VARIABLE_NAME_MISMATCH
    phoneTypesemailTypesVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression telephoneComboBox3 is a field being modified, and thus it cannot be parameterized
    Expression emailComboBox2 is a field being modified, and thus it cannot be parameterized
    27
    emailComboBox2 = new JComboBox(emailTypes);
    42
    telephoneTextField3 = new JTextField();
    42
    telephoneTextField3 = new JTextField();
    28
    emailTextField2 = new JTextField();
    Differences
    Expression1Expression2Difference
    telephoneTextField3emailTextField2VARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression telephoneTextField3 is a field being modified, and thus it cannot be parameterized
    Expression emailTextField2 is a field being modified, and thus it cannot be parameterized
    28
    emailTextField2 = new JTextField();
    43
    telephoneComboBox4 = new JComboBox(phoneTypes);
    43
    telephoneComboBox4 = new JComboBox(phoneTypes);
    25
    emailComboBox1 = new JComboBox(emailTypes);
    Differences
    Expression1Expression2Difference
    telephoneComboBox4emailComboBox1VARIABLE_NAME_MISMATCH
    phoneTypesemailTypesVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression telephoneComboBox4 is a field being modified, and thus it cannot be parameterized
    Expression emailComboBox1 is a field being modified, and thus it cannot be parameterized
    25
    emailComboBox1 = new JComboBox(emailTypes);
    44
    telephoneTextField4 = new JTextField();
    44
    telephoneTextField4 = new JTextField();
    26
    emailTextField1 = new JTextField();
    Differences
    Expression1Expression2Difference
    telephoneTextField4emailTextField1VARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression telephoneTextField4 is a field being modified, and thus it cannot be parameterized
    Expression emailTextField1 is a field being modified, and thus it cannot be parameterized
    26
    emailTextField1 = new JTextField();
    Precondition Violations (18)
    Row Violation
    1Expression telephoneSeparator is a field being modified, and thus it cannot be parameterized
    2Expression emailSeparator is a field being modified, and thus it cannot be parameterized
    3Expression telephoneComboBox1 is a field being modified, and thus it cannot be parameterized
    4Expression emailComboBox4 is a field being modified, and thus it cannot be parameterized
    5Expression telephoneTextField1 is a field being modified, and thus it cannot be parameterized
    6Expression emailTextField4 is a field being modified, and thus it cannot be parameterized
    7Expression telephoneComboBox2 is a field being modified, and thus it cannot be parameterized
    8Expression emailComboBox3 is a field being modified, and thus it cannot be parameterized
    9Expression telephoneTextField2 is a field being modified, and thus it cannot be parameterized
    10Expression emailTextField3 is a field being modified, and thus it cannot be parameterized
    11Expression telephoneComboBox3 is a field being modified, and thus it cannot be parameterized
    12Expression emailComboBox2 is a field being modified, and thus it cannot be parameterized
    13Expression telephoneTextField3 is a field being modified, and thus it cannot be parameterized
    14Expression emailTextField2 is a field being modified, and thus it cannot be parameterized
    15Expression telephoneComboBox4 is a field being modified, and thus it cannot be parameterized
    16Expression emailComboBox1 is a field being modified, and thus it cannot be parameterized
    17Expression telephoneTextField4 is a field being modified, and thus it cannot be parameterized
    18Expression emailTextField1 is a field being modified, and thus it cannot be parameterized