File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/CandlestickRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/CandlestickRenderer.java | |||
Method name: void drawItem(Graphics2D, XYItemRendererState, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
|
Method name: void drawItem(Graphics2D, XYItemRendererState, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (yHigh > maxOpenClose) {↵ | 1 | if (yLow < minOpenClose) {↵ | |
2 | if (horiz) {↵ | 2 | if (horiz) {↵ | |
3 | g2.draw(new Line2D.Double(yyHigh, xx, yyMaxOpenClose, xx));↵ | 3 | g2.draw(new Line2D.Double(yyLow, xx, yyMinOpenClose, xx));↵ | |
4 | }↵ | 4 | }↵ | |
5 | else {↵ | 5 | else {↵ | |
6 | g2.draw(new Line2D.Double(xx, yyHigh, xx, yyMaxOpenClose));↵ | 6 | g2.draw(new Line2D.Double(xx, yyLow, xx, yyMinOpenClose));↵ | |
7 | }↵ | 7 | }↵ | |
8 | } | 8 |
| |
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 | 10 |
Number of mapped statements | 3 |
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) | 12.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
90 | if (horiz) | 94 | if (horiz) | ||||||||||||||
91 | g2.draw(new Line2D.Double(yyHigh, xx, yyMaxOpenClose, xx)); |
| 95 | g2.draw(new Line2D.Double(yyLow, xx, yyMinOpenClose, xx)); | |||||||||||||
else | else | ||||||||||||||||
92 | g2.draw(new Line2D.Double(xx, yyHigh, xx, yyMaxOpenClose)); |
| 96 | g2.draw(new Line2D.Double(xx, yyLow, xx, yyMinOpenClose)); |
Row | Violation |
---|