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();
imSeparator = compFactory.createSeparator(bundle .getString("imSeparator.text")); String[] imTypes = new String[] { "Jabber", "AIM", "Yahoo", "MSN", "ICQ" }; imComboBox1 = new JComboBox(imTypes); imTextField1 = new JTextField(); imComboBox2 = new JComboBox(imTypes); imTextField2 = new JTextField(); imComboBox3 = new JComboBox(imTypes); imTextField3 = new JTextField(); imComboBox4 = new JComboBox(imTypes); imTextField4 = 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
imSeparator = compFactory.createSeparator(bundle
2
				.getString("telephoneSeparator.text"));
2
				.getString("imSeparator.text"));
3
		String[] phoneTypes = new String[] { "Business Phone",
3
		String[] imTypes = new String[] { "
4
				"Assistant Phone", "Business Fax", "Callback Phone",
5
				"Car Phone", "Company Phone", "Home Phone", "Home Fax", "ISDN",
4
Jabber", "AIM", "Yahoo", "MSN",
6
				"Mobile Phone", "Other Phone", "Other Fax", "Pager",
5
				"
7
				"Primary Phone", "Radio", "Telex", "TTY" };
8
		telephone
6
ICQ" };
9
ComboBox1 = new JComboBox(phoneTypes);
7
		imComboBox1 = new JComboBox(imTypes);
10
		telephoneTextField1 = new JTextField();
8
		imTextField1 = new JTextField();
11
		telephoneComboBox2 = new JComboBox(phoneTypes);
9
		imComboBox2 = new JComboBox(imTypes);
12
		telephoneTextField2 = new JTextField();
10
		imTextField2 = new JTextField();
13
		telephoneComboBox3 = new JComboBox(phoneTypes);
11
		imComboBox3 = new JComboBox(imTypes);
14
		telephoneTextField3 = new JTextField();
12
		imTextField3 = new JTextField();
15
		telephoneComboBox4 = new JComboBox(phoneTypes);
13
		imComboBox4 = new JComboBox(imTypes);
16
		telephoneTextField4 = new JTextField();
14
		imTextField4 = 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"));
    45
    imSeparator = compFactory.createSeparator(bundle.getString("imSeparator.text"));
    Differences
    Expression1Expression2Difference
    telephoneSeparatorimSeparatorVARIABLE_NAME_MISMATCH
    "telephoneSeparator.text""imSeparator.text"LITERAL_VALUE_MISMATCH
    Preondition Violations
    Expression telephoneSeparator is a field being modified, and thus it cannot be parameterized
    Expression imSeparator is a field being modified, and thus it cannot be parameterized
    45
    imSeparator = compFactory.createSeparator(bundle.getString("imSeparator.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"};
    46
    String[] imTypes = new String[] {"Jabber", "AIM", "Yahoo", "MSN", "ICQ"};
    Differences
    Expression1Expression2Difference
    phoneTypesimTypesVARIABLE_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"}{"Jabber","AIM","Yahoo","MSN","ICQ"}ARRAY_INITIALIZER_EXPRESSION_NUMBER_MISMATCH
    46
    String[] imTypes = new String[] {"Jabber", "AIM", "Yahoo", "MSN", "ICQ"};
    37
    telephoneComboBox1 = new JComboBox(phoneTypes);
    37
    telephoneComboBox1 = new JComboBox(phoneTypes);
    47
    imComboBox1 = new JComboBox(imTypes);
    Differences
    Expression1Expression2Difference
    telephoneComboBox1imComboBox1VARIABLE_NAME_MISMATCH
    phoneTypesimTypesVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression telephoneComboBox1 is a field being modified, and thus it cannot be parameterized
    Expression imComboBox1 is a field being modified, and thus it cannot be parameterized
    47
    imComboBox1 = new JComboBox(imTypes);
    38
    telephoneTextField1 = new JTextField();
    38
    telephoneTextField1 = new JTextField();
    48
    imTextField1 = new JTextField();
    Differences
    Expression1Expression2Difference
    telephoneTextField1imTextField1VARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression telephoneTextField1 is a field being modified, and thus it cannot be parameterized
    Expression imTextField1 is a field being modified, and thus it cannot be parameterized
    48
    imTextField1 = new JTextField();
    39
    telephoneComboBox2 = new JComboBox(phoneTypes);
    39
    telephoneComboBox2 = new JComboBox(phoneTypes);
    49
    imComboBox2 = new JComboBox(imTypes);
    Differences
    Expression1Expression2Difference
    telephoneComboBox2imComboBox2VARIABLE_NAME_MISMATCH
    phoneTypesimTypesVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression telephoneComboBox2 is a field being modified, and thus it cannot be parameterized
    Expression imComboBox2 is a field being modified, and thus it cannot be parameterized
    49
    imComboBox2 = new JComboBox(imTypes);
    40
    telephoneTextField2 = new JTextField();
    40
    telephoneTextField2 = new JTextField();
    50
    imTextField2 = new JTextField();
    Differences
    Expression1Expression2Difference
    telephoneTextField2imTextField2VARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression telephoneTextField2 is a field being modified, and thus it cannot be parameterized
    Expression imTextField2 is a field being modified, and thus it cannot be parameterized
    50
    imTextField2 = new JTextField();
    41
    telephoneComboBox3 = new JComboBox(phoneTypes);
    41
    telephoneComboBox3 = new JComboBox(phoneTypes);
    51
    imComboBox3 = new JComboBox(imTypes);
    Differences
    Expression1Expression2Difference
    telephoneComboBox3imComboBox3VARIABLE_NAME_MISMATCH
    phoneTypesimTypesVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression telephoneComboBox3 is a field being modified, and thus it cannot be parameterized
    Expression imComboBox3 is a field being modified, and thus it cannot be parameterized
    51
    imComboBox3 = new JComboBox(imTypes);
    42
    telephoneTextField3 = new JTextField();
    42
    telephoneTextField3 = new JTextField();
    52
    imTextField3 = new JTextField();
    Differences
    Expression1Expression2Difference
    telephoneTextField3imTextField3VARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression telephoneTextField3 is a field being modified, and thus it cannot be parameterized
    Expression imTextField3 is a field being modified, and thus it cannot be parameterized
    52
    imTextField3 = new JTextField();
    43
    telephoneComboBox4 = new JComboBox(phoneTypes);
    43
    telephoneComboBox4 = new JComboBox(phoneTypes);
    53
    imComboBox4 = new JComboBox(imTypes);
    Differences
    Expression1Expression2Difference
    telephoneComboBox4imComboBox4VARIABLE_NAME_MISMATCH
    phoneTypesimTypesVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression telephoneComboBox4 is a field being modified, and thus it cannot be parameterized
    Expression imComboBox4 is a field being modified, and thus it cannot be parameterized
    53
    imComboBox4 = new JComboBox(imTypes);
    44
    telephoneTextField4 = new JTextField();
    44
    telephoneTextField4 = new JTextField();
    54
    imTextField4 = new JTextField();
    Differences
    Expression1Expression2Difference
    telephoneTextField4imTextField4VARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression telephoneTextField4 is a field being modified, and thus it cannot be parameterized
    Expression imTextField4 is a field being modified, and thus it cannot be parameterized
    54
    imTextField4 = new JTextField();
    Precondition Violations (18)
    Row Violation
    1Expression telephoneSeparator is a field being modified, and thus it cannot be parameterized
    2Expression imSeparator 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 imComboBox1 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 imTextField1 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 imComboBox2 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 imTextField2 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 imComboBox3 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 imTextField3 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 imComboBox4 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 imTextField4 is a field being modified, and thus it cannot be parameterized