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: void initSiteProperties()
|
Method name: void runStartupScripts(File)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | return;↵ | 1 | return;↵ | |
2 | String[] snippets = siteSettings.list();↵ | 2 | File[] snippets = directory.listFiles();↵ | |
3 | if (snippets == null)↵ | 3 | if (snippets == null)↵ | |
4 | return;↵ | 4 | return;↵ | |
5 | MiscUtilities.quicksort(snippets,↵ | 5 | MiscUtilities.quicksort(snippets,↵ | |
6 | new MiscUtilities.StringICaseCompare()); | 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.2 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 8 |
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.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 3 | File[] snippets = directory.listFiles(); | |||||||||||||
5 | String[] snippets = siteSettings.list(); | | |||||||||||||
6 | if (snippets == null) |
| 4 | if (snippets == null) | |||||||||||
7 | return; |
| 5 | return; | |||||||||||
8 | MiscUtilities.quicksort(snippets, new MiscUtilities.StringICaseCompare()); |
| 6 | MiscUtilities.quicksort(snippets, new MiscUtilities.StringICaseCompare()); |
Row | Violation |
---|---|
1 | Type java.lang.String[] of variable snippets does not match with type java.io.File[] of variable snippets |
2 | Conditional return; |
3 | Conditional return; |
4 | Type java.lang.String[] of variable snippets does not match with type java.io.File[] of variable snippets |