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 fillIMModel(JTextField, JComboBox, ContactModel)
|
Method name: void fillIMModel(JTextField, JComboBox, ContactModel)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 3 | |||
1 | if (imComboBox.getSelectedIndex() == 2)↵ | |||
2 | destModel↵ | 1 | destModel↵ | |
3 | .addInstantMessaging(new InstantMessagingModel(↵ | 2 | .addInstantMessaging(new InstantMessagingModel(↵ | |
4 | imTextField.getText(),↵ | 3 | imTextField.getText(),↵ | |
5 | InstantMessagingModel.TYPE_YAHOO));↵ | 4 | InstantMessagingModel.TYPE_JABBER));↵ | |
6 | else if (imComboBox.getSelectedIndex() == 3)↵ | 5 | else if (imComboBox.getSelectedIndex() == 1)↵ | |
7 | destModel.addInstantMessaging(new InstantMessagingModel(↵ | 6 | destModel.addInstantMessaging(new InstantMessagingModel(↵ | |
8 | imTextField.getText(), InstantMessagingModel.TYPE_MSN));↵ | 7 | imTextField.getText(), InstantMessagingModel.TYPE_AIM));↵ | |
9 | else if (imComboBox.getSelectedIndex() == 4)↵ | 8 | else if (imComboBox.getSelectedIndex() == 2)↵ | |
10 | destModel↵ | 9 | destModel↵ | |
11 | .addInstantMessaging(new InstantMessagingModel(↵ | 10 | .addInstantMessaging(new InstantMessagingModel(↵ | |
12 | imTextField.getText(), ↵ | 11 | imTextField.getText(),↵ | |
13 | InstantMessagingModel.TYPE_ICQ)); | 12 | InstantMessagingModel.TYPE_YAHOO)); | |
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 | 0 |
Number of mapped statements | 0 |
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 | Unknown type |
ID | Statement | ID | Statement |
---|
Row | Violation |
---|