File path: /jEdit-4.2/src/org/gjt/sp/jedit/jEdit.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/jEdit.java | |||
Method name: String[] getNotLoadedPluginJARs()
|
Method name: String[] getNotLoadedPluginJARs()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if(jEditHome != null)↵ | 1 | if(settingsDirectory != null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | String systemPluginDir = MiscUtilities↵ | 3 | String userPluginDir = MiscUtilities↵ | |
4 | .constructPath(jEditHome,"jars");↵ | 4 | .constructPath(settingsDirectory,"jars");↵ | |
5 | String[] list = new File(systemPluginDir).list();↵ | 5 | String[] list = new File(userPluginDir).list();↵ | |
6 | if(list != null)↵ | 6 | if(list != null)↵ | |
7 | ↵ | 7 | {↵ | |
8 | getNotLoadedPluginJARs(returnValue,system↵ | 8 | getNotLoadedPluginJARs(returnValue,↵ | |
9 | PluginDir,list);↵ | 9 | userPluginDir,list);↵ | |
10 | ↵ | 10 | }↵ | |
11 | } | 11 | } | |
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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 13 |
Number of mapped statements | 5 |
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.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | if (jEditHome != null) |
| 7 | if (settingsDirectory != null) | |||||||||||||
3 | String systemPluginDir = MiscUtilities.constructPath(jEditHome, "jars"); |
| 8 | String userPluginDir = MiscUtilities.constructPath(settingsDirectory, "jars"); | |||||||||||||
4 | String[] list = new File(systemPluginDir).list(); |
| 9 | String[] list = new File(userPluginDir).list(); | |||||||||||||
5 | if (list != null) | 10 | if (list != null) | ||||||||||||||
6 | getNotLoadedPluginJARs(returnValue, systemPluginDir, list); |
| 11 | getNotLoadedPluginJARs(returnValue, userPluginDir, list); |
Row | Violation |
---|