File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/accountwizard/OutgoingServerStep.java | File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/dialog/importfilter/PluginStep.java | |||
Method name: JComponent createComponent()
|
Method name: JComponent createComponent()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | Method method = null;↵ | 1 | Method method = null;↵ | |
2 | try {↵ | |||
3 | method = hostTextField↵ | 2 | try {↵ | |
4 | .getClass().getMethod("getText", null);↵ | 3 | method = list.getClass().getMethod("getSelectedValue", null);↵ | |
5 | } catch (NoSuchMethodException nsme) {↵ | 4 | } catch (NoSuchMethodException nsme) {↵ | |
6 | }↵ | |||
7 | ↵ | 5 | }↵ | |
8 | data.registerDataLookup("OutgoingServer.host",↵ | 6 | data.registerDataLookup("↵ | |
9 | new DefaultDataLookup(hostTextField, ↵ | 7 | Plugin.ID", new DefaultDataLookup(list,↵ | |
10 | method, null)); | 8 | method, null)); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 8 |
Number of mapped statements | 4 |
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) | 3.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9 | Method method = null; | 11 | Method method = null; | |||||||||||||||||
10 | try | 12 | try | |||||||||||||||||
11 | method = hostTextField.getClass().getMethod("getText", null); |
| 13 | method = list.getClass().getMethod("getSelectedValue", null); | ||||||||||||||||
12 | data.registerDataLookup("OutgoingServer.host", new DefaultDataLookup(hostTextField, method, null)); |
| 14 | data.registerDataLookup("Plugin.ID", new DefaultDataLookup(list, method, null)); |
Row | Violation |
---|