File path: /jEdit-4.2/src/org/gjt/sp/jedit/pluginmgr/Roster.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/pluginmgr/Roster.java | |||
Method name: void performOperationsInAWTThread(Component)
|
Method name: void performOperationsInAWTThread(Component)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | String pluginName = (String)toLoad.get(i);↵ | 1 | String pluginName = (String)toLoad.get(i);↵ | |
2 | PluginJAR plugin = jEdit.getPluginJAR(pluginName);↵ | 2 | PluginJAR plugin = jEdit.getPluginJAR(pluginName);↵ | |
3 | if(plugin != null)↵ | 3 | if(plugin != null)↵ | |
4 | plugin.activatePluginIfNecessary(); | 4 | plugin.checkDependencies(); | |
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.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 10 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||
---|---|---|---|---|---|---|---|
15 | String pluginName = (String)toLoad.get(i); | 10 | String pluginName = (String)toLoad.get(i); | ||||
16 | PluginJAR plugin = jEdit.getPluginJAR(pluginName); | 11 | PluginJAR plugin = jEdit.getPluginJAR(pluginName); | ||||
17 | if (plugin != null) | 12 | if (plugin != null) | ||||
|
| 13 | plugin.checkDependencies(); | ||||
18 | plugin.activatePluginIfNecessary(); |
| |
Row | Violation |
---|---|
1 | Unmatched statement plugin.checkDependencies(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement plugin.activatePluginIfNecessary(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |