File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/DisplayManager.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/DisplayManager.java | |||
Method name: void physUp(int, int)
|
Method name: void physDown(int, int)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | if(Debug.SCROLL_DEBUG)↵ | 1 | if(Debug.SCROLL_DEBUG)↵ | |
2 | {↵ | 2 | {↵ | |
3 | Log.log(Log.DEBUG,this,"physUp() end: "↵ | 3 | Log.log(Log.DEBUG,this,"physDown() end: "↵ | |
4 | + physicalLine + ":" + scrollLine);↵ | 4 | + physicalLine + ":" + scrollLine);↵ | |
5 | }↵ | 5 | }↵ | |
6 | callChanged = true;↵ | 6 | callChanged = true;↵ | |
7 | // JEditTextArea.scrollTo() needs this to simplify↵ | 7 | // JEditTextArea.scrollTo() needs this to simplify↵ | |
8 | // its code↵ | 8 | // its code↵ | |
9 | if(screenAmount < 0)↵ | 9 | if(screenAmount < 0)↵ | |
10 | scrollUp(-screenAmount);↵ | 10 | scrollUp(-screenAmount);↵ | |
11 | else if(screenAmount > 0)↵ | 11 | else if(screenAmount > 0)↵ | |
12 | scrollDown(screenAmount); | 12 |
| |
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.6 |
Clones location | Clones are declared in the same class |
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) | 2.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19 | if (Debug.SCROLL_DEBUG) | 21 | if (Debug.SCROLL_DEBUG) | |||||||||||
20 | Log.log(Log.DEBUG, this, "physUp() end: " + physicalLine + ":" + scrollLine); |
| 22 | Log.log(Log.DEBUG, this, "physDown() end: " + physicalLine + ":" + scrollLine); | ||||||||||
21 | callChanged = true; | 23 | callChanged = true; | |||||||||||
22 | if (screenAmount < 0) | 24 | if (screenAmount < 0) | |||||||||||
23 | scrollUp(-screenAmount); | 25 | scrollUp(-screenAmount); | |||||||||||
24 | else if (screenAmount > 0) | 26 | else if (screenAmount > 0) | |||||||||||
25 | scrollDown(screenAmount); | 27 | scrollDown(screenAmount); |
Row | Violation |
---|