File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/filter/CriteriaList.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/filter/CriteriaList.java | |||
Method name: void update()
|
Method name: void update()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | try {↵ | 1 | try {↵ | |
2 | IExtension extension = pluginHandler.getExtension(type);↵ | 2 | IExtension extension = pluginHandler.getExtension("Subject");↵ | |
3 | String uiId = extension.getMetadata().getAttribute("ui");↵ | 3 | String uiId = extension.getMetadata().getAttribute("ui");↵ | |
4 | IExtension uiExtension = pluginUIHandler.getExtension(uiId);↵ | 4 | IExtension uiExtension = pluginUIHandler.getExtension(uiId);↵ | |
5 | column = (DefaultCriteriaRow) uiExtension↵ | 5 | column = (DefaultCriteriaRow) uiExtension↵ | |
6 | .instanciateExtension(args);↵ | 6 | .instanciateExtension(args);↵ | |
7 | } catch (Exception ex) {↵ | 7 | } catch (Exception ex) {↵ | |
8 | ex.printStackTrace();↵ | 8 | ex.printStackTrace();↵ | |
9 | } | 9 | } | |
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.1 |
Clones location | Clones are in the same method |
Number of node comparisons | 27 |
Number of mapped statements | 5 |
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) | 1.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19 | try | 25 | try | |||||||||||
20 | IExtension extension = pluginHandler.getExtension(type); |
| 26 | IExtension extension = pluginHandler.getExtension("Subject"); | ||||||||||
21 | String uiId = extension.getMetadata().getAttribute("ui"); | 27 | String uiId = extension.getMetadata().getAttribute("ui"); | |||||||||||
22 | IExtension uiExtension = pluginUIHandler.getExtension(uiId); | 28 | IExtension uiExtension = pluginUIHandler.getExtension(uiId); | |||||||||||
23 | column = (DefaultCriteriaRow)uiExtension.instanciateExtension(args); | 29 | column = (DefaultCriteriaRow)uiExtension.instanciateExtension(args); |
Row | Violation |
---|