File path: /columba-1.4-src/core/src/main/java/org/columba/core/plugin/PluginManager.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/plugin/PluginManager.java | |||
Method name: void initExternalPlugins()
|
Method name: void initExternalExtensionHandlers()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | File folder = pluginFolders[i];↵ | 1 | File folder = pluginFolders[i];↵ | |
2 | File xmlFile = new File(folder, FILENAME_PLUGIN_XML);↵ | 2 | File xmlFile = new File(folder, FILENAME_EXTENSIONHANDLER_XML);↵ | |
3 | if (xmlFile == null || !xmlFile.exists()) {↵ | 3 | if (xmlFile == null || !xmlFile.exists()) {↵ | |
4 | // skip if it doesn't exist↵ | 4 | // skip if it doesn't exist↵ | |
5 | continue;↵ | 5 | continue;↵ | |
6 | } | 6 |
| |
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 declared in the same class |
Number of node comparisons | 7 |
Number of mapped statements | 4 |
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) | 0.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | File folder = pluginFolders[i]; | 4 | File folder = pluginFolders[i]; | |||||||||||
5 | File xmlFile = new File(folder, FILENAME_PLUGIN_XML); |
| 5 | File xmlFile = new File(folder, FILENAME_EXTENSIONHANDLER_XML); | ||||||||||
6 | if (xmlFile == null || !xmlFile.exists()) | 6 | if (xmlFile == null || !xmlFile.exists()) | |||||||||||
7 | continue; |
| 7 | continue; |
Row | Violation |
---|---|
1 | Statement continue; without innermost loop |
2 | Statement continue; without innermost loop |
3 | Clone fragment #1 returns variables folder, xmlFile , while Clone fragment #2 returns variables xmlFile, folder |