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: 5 | Number of AST nodes: 5 | |||
1 | for(int i = 0; i < toLoad.size(); i++)↵ | 1 | for(int i = 0; i < toLoad.size(); i++)↵ | |
2 | {↵ | 2 | {↵ | |
3 | String pluginName = (String)toLoad.get(i);↵ | 3 | String pluginName = (String)toLoad.get(i);↵ | |
4 | PluginJAR plugin = jEdit.getPluginJAR(pluginName);↵ | 4 | PluginJAR plugin = jEdit.getPluginJAR(pluginName);↵ | |
5 | if(plugin != null)↵ | 5 | if(plugin != null)↵ | |
6 | plugin.checkDependencies();↵ | 6 | plugin.activatePluginIfNecessary();↵ | |
7 | } | 7 |
| |
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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 14 |
Number of mapped statements | 4 |
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) | 1.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||
---|---|---|---|---|---|---|---|
9 | for (int i = 0; i < toLoad.size(); i++) | 14 | for (int i = 0; i < toLoad.size(); i++) | ||||
10 | String pluginName = (String)toLoad.get(i); | 15 | String pluginName = (String)toLoad.get(i); | ||||
11 | PluginJAR plugin = jEdit.getPluginJAR(pluginName); | 16 | PluginJAR plugin = jEdit.getPluginJAR(pluginName); | ||||
12 | if (plugin != null) | 17 | 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 |