File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/menu/MenuXMLDecoder.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/html/HtmlToolbar.java | |||
Method name: AbstractColumbaAction getAction(String, IFrameMediator)
|
Method name: AbstractColumbaAction getAction(String, IFrameMediator)
|
|||
Number of AST nodes: 10 | Number of AST nodes: 10 | |||
1 | if (id == null)↵ | 1 | if (id == null)↵ | |
2 | throw new IllegalArgumentException("id == null");↵ | 2 | throw new IllegalArgumentException("id == null");↵ | |
3 | if (controller == null)↵ | 3 | if (controller == null)↵ | |
4 | throw new IllegalArgumentException("controller == null");↵ | 4 | throw new IllegalArgumentException("controller == null");↵ | |
5 | IExtension extension = pluginHandler.getExtension(id);↵ | 5 | IExtension extension = handler.getExtension(id);↵ | |
6 | AbstractColumbaAction a = null;↵ | 6 | AbstractColumbaAction a = null;↵ | |
7 | try {↵ | 7 | try {↵ | |
8 | if (extension != null)↵ | 8 | if (extension != null)↵ | |
9 | a = (AbstractColumbaAction) extension↵ | 9 | a = (AbstractColumbaAction) extension↵ | |
10 | .instanciateExtension(new Object[] { controller });↵ | 10 | .instanciateExtension(new Object[] { controller });↵ | |
11 | } catch (Exception e) {↵ | 11 | } catch (PluginException e) {↵ | |
12 | LOG.severe(e.getMessage());↵ | 12 | LOG.severe(e.getMessage());↵ | |
13 | if (Logging.DEBUG)↵ | 13 | if (Logging.DEBUG)↵ | |
14 | e.printStackTrace();↵ | 14 | e.printStackTrace();↵ | |
15 | }↵ | 15 | }↵ | |
16 | return a; | 16 |
| |
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.5 |
Clones location | Clones are in different classes |
Number of node comparisons | 27 |
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) | 1.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (id == null) | 1 | if (id == null) | ||||||||||||||||||||
2 | throw new IllegalArgumentException("id == null"); | 2 | throw new IllegalArgumentException("id == null"); | ||||||||||||||||||||
3 | if (controller == null) | 3 | if (controller == null) | ||||||||||||||||||||
4 | throw new IllegalArgumentException("controller == null"); | 4 | throw new IllegalArgumentException("controller == null"); | ||||||||||||||||||||
5 | IExtension extension = pluginHandler.getExtension(id); |
| 5 | IExtension extension = handler.getExtension(id); | |||||||||||||||||||
6 | AbstractColumbaAction a = null; | 6 | AbstractColumbaAction a = null; | ||||||||||||||||||||
7 | try |
| 7 | try | |||||||||||||||||||
8 | if (extension != null) | 8 | if (extension != null) | ||||||||||||||||||||
9 | a = (AbstractColumbaAction)extension.instanciateExtension(new Object[] {controller}); | 9 | a = (AbstractColumbaAction)extension.instanciateExtension(new Object[] {controller}); | ||||||||||||||||||||
10 | return a; | 10 | return a; |
Row | Violation |
---|