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(); | |
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")); |
| 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"}; |
| 24 | String[] emailTypes = new String[] {"Work", "Home", "Other"}; | |||||||||||||||
37 | telephoneComboBox1 = new JComboBox(phoneTypes); |
| 31 | emailComboBox4 = new JComboBox(emailTypes); | |||||||||||||||
38 | telephoneTextField1 = new JTextField(); |
| 32 | emailTextField4 = new JTextField(); | |||||||||||||||
39 | telephoneComboBox2 = new JComboBox(phoneTypes); |
| 29 | emailComboBox3 = new JComboBox(emailTypes); | |||||||||||||||
40 | telephoneTextField2 = new JTextField(); |
| 30 | emailTextField3 = new JTextField(); | |||||||||||||||
41 | telephoneComboBox3 = new JComboBox(phoneTypes); |
| 27 | emailComboBox2 = new JComboBox(emailTypes); | |||||||||||||||
42 | telephoneTextField3 = new JTextField(); |
| 28 | emailTextField2 = new JTextField(); | |||||||||||||||
43 | telephoneComboBox4 = new JComboBox(phoneTypes); |
| 25 | emailComboBox1 = new JComboBox(emailTypes); | |||||||||||||||
44 | telephoneTextField4 = new JTextField(); |
| 26 | emailTextField1 = new JTextField(); |
Row | Violation |
---|---|
1 | Expression telephoneSeparator is a field being modified, and thus it cannot be parameterized |
2 | Expression emailSeparator 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 emailComboBox4 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 emailTextField4 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 emailComboBox3 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 emailTextField3 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 emailComboBox2 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 emailTextField2 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 emailComboBox1 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 emailTextField1 is a field being modified, and thus it cannot be parameterized |