File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYBoxAndWhiskerRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYBoxAndWhiskerRenderer.java | |||
Method name: void drawHorizontalItem(Graphics2D, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
|
Method name: void drawVerticalItem(Graphics2D, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (yyQ1Median < yyQ3Median) {↵ | 1 | if (yyQ1Median > yyQ3Median) {↵ | |
2 | box = new Rectangle2D.Double(yyQ1Median, xx - width / 2, ↵ | 2 | box = new Rectangle2D.Double(xx - width / 2, yyQ3Median, width, ↵ | |
3 | yyQ3Median - yyQ1Median, width);↵ | 3 | yyQ1Median - yyQ3Median);↵ | |
4 | }↵ | 4 | }↵ | |
5 | else {↵ | 5 | else {↵ | |
6 | box = new Rectangle2D.Double(yyQ3Median, xx - width / 2, ↵ | 6 | box = new Rectangle2D.Double(xx - width / 2, yyQ1Median, width, ↵ | |
7 | yyQ1Median - yyQ3Median, width);↵ | 7 | yyQ3Median - yyQ1Median);↵ | |
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 declared in the same class |
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) | 14.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
43 | if (yyQ1Median < yyQ3Median) |
| 45 | if (yyQ1Median > yyQ3Median) | |||||||||||||||||||||
44 | box = new Rectangle2D.Double(yyQ1Median, xx - width / 2, yyQ3Median - yyQ1Median, width); |
| 46 | box = new Rectangle2D.Double(xx - width / 2, yyQ3Median, width, yyQ1Median - yyQ3Median); | |||||||||||||||||||||
else | else | ||||||||||||||||||||||||
45 | box = new Rectangle2D.Double(yyQ3Median, xx - width / 2, yyQ1Median - yyQ3Median, width); |
| 47 | box = new Rectangle2D.Double(xx - width / 2, yyQ1Median, width, yyQ3Median - yyQ1Median); |
Row | Violation |
---|---|
1 | Expression yyQ3Median - yyQ1Median cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression yyQ1Median - yyQ3Median cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression yyQ1Median - yyQ3Median cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression yyQ3Median - yyQ1Median cannot be parameterized, because it has dependencies to/from statements that will be extracted |