File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/CyclicXYItemRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/CyclicXYItemRenderer.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: 5 | Number of AST nodes: 5 | |||
1 | if (cnay != null) {↵ | 1 | if (cnax != null) {↵ | |
2 | if (ycycleBound == y[1]) {↵ | 2 | if (xcycleBound == x[2]) {↵ | |
3 | cnay.setBoundMappedToLastCycle(y[2] <= ycycleBound);↵ | 3 | cnax.setBoundMappedToLastCycle(x[3] <= xcycleBound);↵ | |
4 | }↵ | 4 | }↵ | |
5 | if (ycycleBound == y[2]) {↵ | 5 | if (xcycleBound == x[3]) {↵ | |
6 | cnay.setBoundMappedToLastCycle(y[1] <= ycycleBound);↵ | 6 | cnax.setBoundMappedToLastCycle(x[2] <= xcycleBound);↵ | |
7 | }↵ | 7 | ↵ | |
8 | }↵ | |||
8 | } | 9 | } | |
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.4 |
Clones location | Clones are in the same method |
Number of node comparisons | 14 |
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) | 6.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
89 | if (cnay != null) |
| 96 | if (cnax != null) | |||||||||||||||||||
90 | if (ycycleBound == y[1]) |
| 99 | if (xcycleBound == x[3]) | |||||||||||||||||||
91 | cnay.setBoundMappedToLastCycle(y[2] <= ycycleBound); |
| 100 | cnax.setBoundMappedToLastCycle(x[2] <= xcycleBound); | |||||||||||||||||||
92 | if (ycycleBound == y[2]) |
| 97 | if (xcycleBound == x[2]) | |||||||||||||||||||
93 | cnay.setBoundMappedToLastCycle(y[1] <= ycycleBound); |
| 98 | cnax.setBoundMappedToLastCycle(x[3] <= xcycleBound); |
Row | Violation |
---|