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: View newView(View, Buffer, View.ViewConfig)
|
Method name: View newView(View, Buffer, View.ViewConfig)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if(config.top != null↵ | |||
2 | && config.top.length() != 0)↵ | |||
3 | wm.showDockableWindow(config.top);↵ | |||
4 | if(config.left != null↵ | 1 | if(config.left != null↵ | |
5 | && config.left.length() != 0)↵ | 2 | && config.left.length() != 0)↵ | |
6 | wm.showDockableWindow(config.left);↵ | 3 | wm.showDockableWindow(config.left);↵ | |
7 | if(config.bottom != null↵ | 4 | if(config.bottom != null↵ | |
8 | && config.bottom.length() != 0)↵ | 5 | && config.bottom.length() != 0)↵ | |
9 | wm.showDockableWindow(config.bottom); | 6 | wm.showDockableWindow(config.bottom);↵ | |
7 | if(config.right != null↵ | |||
8 | && config.right.length() != 0)↵ | |||
9 |
| |||
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) | 2.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 28 |
Number of mapped statements | 6 |
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) | 2.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10 | if (config.top != null && config.top.length() != 0) |
| 12 | if (config.left != null && config.left.length() != 0) | |||||||||||||
11 | wm.showDockableWindow(config.top); |
| 13 | wm.showDockableWindow(config.left); | |||||||||||||
12 | if (config.left != null && config.left.length() != 0) |
| 14 | if (config.bottom != null && config.bottom.length() != 0) | |||||||||||||
13 | wm.showDockableWindow(config.left); |
| 15 | wm.showDockableWindow(config.bottom); | |||||||||||||
14 | if (config.bottom != null && config.bottom.length() != 0) |
| 16 | if (config.right != null && config.right.length() != 0) | |||||||||||||
15 | wm.showDockableWindow(config.bottom); |
| 17 | wm.showDockableWindow(config.right); |
Row | Violation |
---|