File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYErrorRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYErrorRenderer.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: 3 | Number of AST nodes: 3 | |||
1 | line = new Line2D.Double(yy, xx0, yy, xx1);↵ | 1 | line = new Line2D.Double(yy0, xx, yy1, xx);↵ | |
2 | cap1 = new Line2D.Double(yy - adj, xx0, yy + adj, xx0);↵ | 2 | cap1 = new Line2D.Double(yy0, xx - adj, yy0, xx + adj);↵ | |
3 | cap2 = new Line2D.Double(yy - adj, xx1, yy + adj, xx1); | 3 | cap2 = new Line2D.Double(yy1, xx - adj, yy1, xx + adj); | |
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) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 9 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
20 | line = new Line2D.Double(yy, xx0, yy, xx1); |
| 48 | cap2 = new Line2D.Double(yy1, xx - adj, yy1, xx + adj); | ||||||||||||||||||||||
21 | cap1 = new Line2D.Double(yy - adj, xx0, yy + adj, xx0); |
| 47 | cap1 = new Line2D.Double(yy0, xx - adj, yy0, xx + adj); | ||||||||||||||||||||||
22 | cap2 = new Line2D.Double(yy - adj, xx1, yy + adj, xx1); |
| 46 | line = new Line2D.Double(yy0, xx, yy1, xx); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables line, cap1, cap2 , while Clone fragment #2 returns variables line, cap1, cap2 |