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: 7 | Number of AST nodes: 7 | |||
1 | Component left = splitPane.getLeftComponent();↵ | 1 | Component right = splitPane.getRightComponent();↵ | |
2 | if(left instanceof JSplitPane)↵ | 2 | if(right instanceof JSplitPane)↵ | |
3 | getSplitConfig((JSplitPane)left,splitConfig);↵ | 3 | getSplitConfig((JSplitPane)right,splitConfig);↵ | |
4 | else↵ | 4 | else↵ | |
5 | {↵ | 5 | {↵ | |
6 | splitConfig.append('"');↵ | 6 | splitConfig.append('"');↵ | |
7 | splitConfig.append(MiscUtilities.charsToEscapes(↵ | 7 | splitConfig.append(MiscUtilities.charsToEscapes(↵ | |
8 | ((EditPane)left).getBuffer().getPath()));↵ | 8 | ((EditPane)right).getBuffer().getPath()));↵ | |
9 | splitConfig.append("\" buffer");↵ | 9 | splitConfig.append("\" buffer");↵ | |
10 | }↵ | 10 | }↵ | |
11 | splitConfig.append(' '); | 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.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 29 |
Number of mapped statements | 7 |
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) | 3.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8 | Component left = splitPane.getLeftComponent(); |
| 1 | Component right = splitPane.getRightComponent(); | |||||||||||||
9 | if (left instanceof JSplitPane) |
| 2 | if (right instanceof JSplitPane) | |||||||||||||
10 | getSplitConfig((JSplitPane)left, splitConfig); |
| 3 | getSplitConfig((JSplitPane)right, splitConfig); | |||||||||||||
else | else | ||||||||||||||||
11 | splitConfig.append('"'); | 4 | splitConfig.append('"'); | ||||||||||||||
12 | splitConfig.append(MiscUtilities.charsToEscapes(((EditPane)left).getBuffer().getPath())); |
| 5 | splitConfig.append(MiscUtilities.charsToEscapes(((EditPane)right).getBuffer().getPath())); | |||||||||||||
13 | splitConfig.append("\" buffer"); | 6 | splitConfig.append("\" buffer"); | ||||||||||||||
14 | splitConfig.append(' '); | 7 | splitConfig.append(' '); |
Row | Violation |
---|