File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/JEditTextArea.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/JEditTextArea.java | |||
Method name: void goToPrevCharacter(boolean)
|
Method name: void goToNextCharacter(boolean)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if(multi)↵ | 1 | if(multi)↵ | |
2 | {↵ | 2 | {↵ | |
3 | if(caret != s.start)↵ | 3 | if(caret != s.end)↵ | |
4 | {↵ | 4 | {↵ | |
5 | moveCaretPosition(s.start);↵ | 5 | moveCaretPosition(s.end);↵ | |
6 | return;↵ | 6 | return;↵ | |
7 | }↵ | 7 | }↵ | |
8 | }↵ | 8 | }↵ | |
9 | else↵ | 9 | else↵ | |
10 | {↵ | 10 | {↵ | |
11 | setCaretPosition(s.start);↵ | 11 | setCaretPosition(s.end);↵ | |
12 | return;↵ | 12 | return;↵ | |
13 | } | 13 |
| |
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) | 1.4 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 19 |
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) | 4062.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | if (multi) | 3 | if (multi) | |||||||||||
4 | if (caret != s.start) |
| 4 | if (caret != s.end) | ||||||||||
5 | moveCaretPosition(s.start); |
| 5 | moveCaretPosition(s.end); | ||||||||||
6 | return; |
| 6 | return; | ||||||||||
else | else | |||||||||||||
7 | setCaretPosition(s.start); |
| 7 | setCaretPosition(s.end); | ||||||||||
8 | return; |
| 8 | return; |
Row | Violation |
---|---|
1 | Conditional return; |
2 | Conditional return; |
3 | Conditional return; |
4 | Conditional return; |