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(); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 46 |
Number of mapped statements | 10 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
35 | telephoneSeparator = compFactory.createSeparator(bundle.getString("telephoneSeparator.text")); |
| 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"}; |
| 46 | String[] imTypes = new String[] {"Jabber", "AIM", "Yahoo", "MSN", "ICQ"}; | |||||||||||||||
37 | telephoneComboBox1 = new JComboBox(phoneTypes); |
| 47 | imComboBox1 = new JComboBox(imTypes); | |||||||||||||||
38 | telephoneTextField1 = new JTextField(); |
| 48 | imTextField1 = new JTextField(); | |||||||||||||||
39 | telephoneComboBox2 = new JComboBox(phoneTypes); |
| 49 | imComboBox2 = new JComboBox(imTypes); | |||||||||||||||
40 | telephoneTextField2 = new JTextField(); |
| 50 | imTextField2 = new JTextField(); | |||||||||||||||
41 | telephoneComboBox3 = new JComboBox(phoneTypes); |
| 51 | imComboBox3 = new JComboBox(imTypes); | |||||||||||||||
42 | telephoneTextField3 = new JTextField(); |
| 52 | imTextField3 = new JTextField(); | |||||||||||||||
43 | telephoneComboBox4 = new JComboBox(phoneTypes); |
| 53 | imComboBox4 = new JComboBox(imTypes); | |||||||||||||||
44 | telephoneTextField4 = new JTextField(); |
| 54 | imTextField4 = new JTextField(); |
Row | Violation |
---|---|
1 | Expression telephoneSeparator is a field being modified, and thus it cannot be parameterized |
2 | Expression imSeparator is a field being modified, and thus it cannot be parameterized |
3 | Expression telephoneComboBox1 is a field being modified, and thus it cannot be parameterized |
4 | Expression imComboBox1 is a field being modified, and thus it cannot be parameterized |
5 | Expression telephoneTextField1 is a field being modified, and thus it cannot be parameterized |
6 | Expression imTextField1 is a field being modified, and thus it cannot be parameterized |
7 | Expression telephoneComboBox2 is a field being modified, and thus it cannot be parameterized |
8 | Expression imComboBox2 is a field being modified, and thus it cannot be parameterized |
9 | Expression telephoneTextField2 is a field being modified, and thus it cannot be parameterized |
10 | Expression imTextField2 is a field being modified, and thus it cannot be parameterized |
11 | Expression telephoneComboBox3 is a field being modified, and thus it cannot be parameterized |
12 | Expression imComboBox3 is a field being modified, and thus it cannot be parameterized |
13 | Expression telephoneTextField3 is a field being modified, and thus it cannot be parameterized |
14 | Expression imTextField3 is a field being modified, and thus it cannot be parameterized |
15 | Expression telephoneComboBox4 is a field being modified, and thus it cannot be parameterized |
16 | Expression imComboBox4 is a field being modified, and thus it cannot be parameterized |
17 | Expression telephoneTextField4 is a field being modified, and thus it cannot be parameterized |
18 | Expression imTextField4 is a field being modified, and thus it cannot be parameterized |