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();
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
imSeparator = compFactory.createSeparator(bundle
1
emailSeparator = compFactory.createSeparator(bundle
2
				.getString("imSeparator.text"));
2
				.getString("emailSeparator.text"));
3
		String[] imTypes = new String[] { "Jabber", "AIM", "Yahoo", "MSN",
3
		String[] emailTypes = new String[] { "
4
				"ICQ" };
4
Work", "Home", "Other" };
5
		imComboBox1 = new JComboBox(imTypes);
5
		emailComboBox1 = new JComboBox(emailTypes);
6
		imTextField1 = new JTextField();
6
		emailTextField1 = new JTextField();
7
		imComboBox2 = new JComboBox(imTypes);
7
		emailComboBox2 = new JComboBox(emailTypes);
8
		imTextField2 = new JTextField();
8
		emailTextField2 = new JTextField();
9
		imComboBox3 = new JComboBox(imTypes);
9
		emailComboBox3 = new JComboBox(emailTypes);
10
		imTextField3 = new JTextField();
10
		emailTextField3 = new JTextField();
11
		imComboBox4 = new JComboBox(imTypes);
11
		emailComboBox4 = new JComboBox(emailTypes);
12
		imTextField4 = 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
    45
    imSeparator = compFactory.createSeparator(bundle.getString("imSeparator.text"));
    45
    imSeparator = compFactory.createSeparator(bundle.getString("imSeparator.text"));
    23
    emailSeparator = compFactory.createSeparator(bundle.getString("emailSeparator.text"));
    Differences
    Expression1Expression2Difference
    imSeparatoremailSeparatorVARIABLE_NAME_MISMATCH
    "imSeparator.text""emailSeparator.text"LITERAL_VALUE_MISMATCH
    Preondition Violations
    Expression imSeparator 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"));
    46
    String[] imTypes = new String[] {"Jabber", "AIM", "Yahoo", "MSN", "ICQ"};
    46
    String[] imTypes = new String[] {"Jabber", "AIM", "Yahoo", "MSN", "ICQ"};
    24
    String[] emailTypes = new String[] {"Work", "Home", "Other"};
    Differences
    Expression1Expression2Difference
    imTypesemailTypesVARIABLE_NAME_MISMATCH
    {"Jabber","AIM","Yahoo","MSN","ICQ"}{"Work","Home","Other"}ARRAY_INITIALIZER_EXPRESSION_NUMBER_MISMATCH
    24
    String[] emailTypes = new String[] {"Work", "Home", "Other"};
    47
    imComboBox1 = new JComboBox(imTypes);
    47
    imComboBox1 = new JComboBox(imTypes);
    31
    emailComboBox4 = new JComboBox(emailTypes);
    Differences
    Expression1Expression2Difference
    imComboBox1emailComboBox4VARIABLE_NAME_MISMATCH
    imTypesemailTypesVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression imComboBox1 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);
    48
    imTextField1 = new JTextField();
    48
    imTextField1 = new JTextField();
    32
    emailTextField4 = new JTextField();
    Differences
    Expression1Expression2Difference
    imTextField1emailTextField4VARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression imTextField1 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();
    49
    imComboBox2 = new JComboBox(imTypes);
    49
    imComboBox2 = new JComboBox(imTypes);
    29
    emailComboBox3 = new JComboBox(emailTypes);
    Differences
    Expression1Expression2Difference
    imComboBox2emailComboBox3VARIABLE_NAME_MISMATCH
    imTypesemailTypesVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression imComboBox2 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);
    50
    imTextField2 = new JTextField();
    50
    imTextField2 = new JTextField();
    30
    emailTextField3 = new JTextField();
    Differences
    Expression1Expression2Difference
    imTextField2emailTextField3VARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression imTextField2 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();
    51
    imComboBox3 = new JComboBox(imTypes);
    51
    imComboBox3 = new JComboBox(imTypes);
    27
    emailComboBox2 = new JComboBox(emailTypes);
    Differences
    Expression1Expression2Difference
    imComboBox3emailComboBox2VARIABLE_NAME_MISMATCH
    imTypesemailTypesVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression imComboBox3 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);
    52
    imTextField3 = new JTextField();
    52
    imTextField3 = new JTextField();
    28
    emailTextField2 = new JTextField();
    Differences
    Expression1Expression2Difference
    imTextField3emailTextField2VARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression imTextField3 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();
    53
    imComboBox4 = new JComboBox(imTypes);
    53
    imComboBox4 = new JComboBox(imTypes);
    25
    emailComboBox1 = new JComboBox(emailTypes);
    Differences
    Expression1Expression2Difference
    imComboBox4emailComboBox1VARIABLE_NAME_MISMATCH
    imTypesemailTypesVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression imComboBox4 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);
    54
    imTextField4 = new JTextField();
    54
    imTextField4 = new JTextField();
    26
    emailTextField1 = new JTextField();
    Differences
    Expression1Expression2Difference
    imTextField4emailTextField1VARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression imTextField4 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 imSeparator 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 imComboBox1 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 imTextField1 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 imComboBox2 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 imTextField2 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 imComboBox3 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 imTextField3 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 imComboBox4 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 imTextField4 is a field being modified, and thus it cannot be parameterized
    18Expression emailTextField1 is a field being modified, and thus it cannot be parameterized