File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/TextAreaPainter.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/TextAreaPainter.java | |||
Method name: void paintValidLine(Graphics2D, int, int, int, int, int)
|
Method name: void paintValidLine(Graphics2D, int, int, int, int, int)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | gfx.setFont(defaultFont);↵ | 1 | gfx.setFont(defaultFont);↵ | |
2 | gfx.setColor(eolMarkerColor);↵ | 2 | gfx.setColor(eolMarkerColor);↵ | |
3 | gfx.drawString(".",x,↵ | 3 | gfx.drawString(":",Math.max(x,↵ | |
4 | textArea.getHorizontalOffset()↵ | |||
5 | + textArea.getDisplayManager().wrapMargin + textArea.charWidth),↵ | |||
4 | baseLine);↵ | 6 | baseLine);↵ | |
5 | x += textArea.charWidth; | 7 |
| |
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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 16 |
Number of mapped statements | 4 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
40 | gfx.setFont(defaultFont); | 13 | gfx.setFont(defaultFont); | ||||||||||||||
41 | gfx.setColor(eolMarkerColor); | 14 | gfx.setColor(eolMarkerColor); | ||||||||||||||
42 | gfx.drawString(".", x, baseLine); |
| 15 | gfx.drawString(":", Math.max(x, textArea.getHorizontalOffset() + textArea.getDisplayManager().wrapMargin + textArea.charWidth), baseLine); | |||||||||||||
43 | x += textArea.charWidth; | 16 | x += textArea.charWidth; |
Row | Violation |
---|