File path: /jEdit-4.2/src/org/gjt/sp/jedit/View.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/View.java | |||
Method name: void getSplitConfig(JSplitPane, StringBuffer)
|
Method name: void getSplitConfig(JSplitPane, StringBuffer)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if(right instanceof JSplitPane)↵ | 1 | if(left instanceof JSplitPane)↵ | |
2 | getSplitConfig((JSplitPane)right,splitConfig);↵ | 2 | getSplitConfig((JSplitPane)left,splitConfig);↵ | |
3 | else↵ | 3 | else↵ | |
4 | {↵ | 4 | {↵ | |
5 | splitConfig.append('"');↵ | 5 | splitConfig.append('"');↵ | |
6 | splitConfig.append(MiscUtilities.charsToEscapes(↵ | 6 | splitConfig.append(MiscUtilities.charsToEscapes(↵ | |
7 | ((EditPane)right).getBuffer().getPath()));↵ | 7 | ((EditPane)left).getBuffer().getPath()));↵ | |
8 | splitConfig.append("\" buffer");↵ | 8 | splitConfig.append("\" buffer");↵ | |
9 | }↵ | 9 | }↵ | |
10 | splitConfig.append(' '); | 10 |
| |
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.1 |
Clones location | Clones are in the same method |
Number of node comparisons | 26 |
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.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | if (right instanceof JSplitPane) |
| 9 | if (left instanceof JSplitPane) | ||||||||||
3 | getSplitConfig((JSplitPane)right, splitConfig); |
| 10 | getSplitConfig((JSplitPane)left, splitConfig); | ||||||||||
else | else | |||||||||||||
4 | splitConfig.append('"'); | 11 | splitConfig.append('"'); | |||||||||||
5 | splitConfig.append(MiscUtilities.charsToEscapes(((EditPane)right).getBuffer().getPath())); |
| 12 | splitConfig.append(MiscUtilities.charsToEscapes(((EditPane)left).getBuffer().getPath())); | ||||||||||
6 | splitConfig.append("\" buffer"); | 13 | splitConfig.append("\" buffer"); | |||||||||||
7 | splitConfig.append(' '); | 14 | splitConfig.append(' '); |
Row | Violation |
---|