File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folderoptions/FolderOptionsController.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folderoptions/FolderOptionsController.java | |||
Method name: void load(IMailbox, int)
|
Method name: void load(int)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | try {↵ | 1 | try {↵ | |
2 | AbstractFolderOptionsPlugin plugin = (AbstractFolderOptionsPlugin) extension↵ | 2 | AbstractFolderOptionsPlugin plugin = (AbstractFolderOptionsPlugin) extension↵ | |
3 | .instanciateExtension(new Object[] { mediator });↵ | 3 | .instanciateExtension(new Object[] { mediator });↵ | |
4 | if ((state == STATE_BEFORE) && (stateString.equals("before"))) {↵ | 4 | if ((state == STATE_BEFORE) && (stateString.equals("before"))) {↵ | |
5 | plugin.loadOptionsFromXml(null);↵ | 5 | plugin.loadOptionsFromXml(null);↵ | |
6 | } else if ((state == STATE_AFTER)↵ | 6 | } else if ((state == STATE_AFTER)↵ | |
7 | && (stateString.equals("after"))) {↵ | 7 | && (stateString.equals("after"))) {↵ | |
8 | plugin.loadOptionsFromXml(folder);↵ | 8 | plugin.loadOptionsFromXml(null);↵ | |
9 | }↵ | 9 | }↵ | |
10 | } catch (PluginException e1) {↵ | 10 | } catch (Exception e1) {↵ | |
11 | ↵ | 11 | // TODO (@author fdietz): add error dialog↵ | |
12 | e1.printStackTrace();↵ | 12 | e1.printStackTrace();↵ | |
13 | } | 13 |
| |
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) | 1.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 18 |
Number of mapped statements | 6 |
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) | 2.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5 | try |
| 5 | try | ||||||||||||||||
6 | AbstractFolderOptionsPlugin plugin = (AbstractFolderOptionsPlugin)extension.instanciateExtension(new Object[] {mediator}); | 6 | AbstractFolderOptionsPlugin plugin = (AbstractFolderOptionsPlugin)extension.instanciateExtension(new Object[] {mediator}); | |||||||||||||||||
7 | if ((state == STATE_BEFORE) && (stateString.equals("before"))) | 7 | if ((state == STATE_BEFORE) && (stateString.equals("before"))) | |||||||||||||||||
8 | plugin.loadOptionsFromXml(null); | 8 | plugin.loadOptionsFromXml(null); | |||||||||||||||||
9 | else if ((state == STATE_AFTER) && (stateString.equals("after"))) | 9 | else if ((state == STATE_AFTER) && (stateString.equals("after"))) | |||||||||||||||||
10 | plugin.loadOptionsFromXml(folder); |
| 10 | plugin.loadOptionsFromXml(null); |
Row | Violation |
---|