File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/Gutter.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/Gutter.java | |||
Method name: void paintLine(Graphics2D, int, int)
|
Method name: void paintLine(Graphics2D, int, int)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if(caretLine > textArea.getLastPhysicalLine())↵ | 1 | if(match.startLine > textArea.getLastPhysicalLine())↵ | |
2 | caretScreenLine = Integer.MAX_VALUE;↵ | 2 | structScreenLine = Integer.MAX_VALUE;↵ | |
3 | else if(textArea.displayManager.isLineVisible(↵ | 3 | else if(textArea.displayManager.isLineVisible(↵ | |
4 | textArea.getCaretLine()))↵ | 4 | match.startLine))↵ | |
5 | {↵ | 5 | {↵ | |
6 | caretScreenLine = textArea↵ | 6 | structScreenLine = textArea↵ | |
7 | .getScreenLineOfOffset(↵ | 7 | .getScreenLineOfOffset(↵ | |
8 | textArea.getCaretPosition());↵ | 8 | match.start);↵ | |
9 | }↵ | 9 | }↵ | |
10 | else↵ | 10 | else↵ | |
11 | {↵ | 11 | {↵ | |
12 | caretScreenLine = -1;↵ | 12 | structScreenLine = -1;↵ | |
13 | } | 13 |
| |
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) | 1.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 21 |
Number of mapped statements | 5 |
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) | 60.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33 | if (caretLine > textArea.getLastPhysicalLine()) |
| 39 | if (match.startLine > textArea.getLastPhysicalLine()) | |||||||||||||
34 | caretScreenLine = Integer.MAX_VALUE; |
| 40 | structScreenLine = Integer.MAX_VALUE; | |||||||||||||
35 | else if (textArea.displayManager.isLineVisible(textArea.getCaretLine())) |
| 41 | else if (textArea.displayManager.isLineVisible(match.startLine)) | |||||||||||||
36 | caretScreenLine = textArea.getScreenLineOfOffset(textArea.getCaretPosition()); |
| 42 | structScreenLine = textArea.getScreenLineOfOffset(match.start); | |||||||||||||
else | else | ||||||||||||||||
37 | caretScreenLine = -1; |
| 43 | structScreenLine = -1; |
Row | Violation |
---|