File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java | |||
Method name: void draw(Graphics2D, Rectangle2D, Point2D, PlotState, PlotRenderingInfo)
|
Method name: void draw(Graphics2D, Rectangle2D, Point2D, PlotState, PlotRenderingInfo)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | XYItemRenderer r = getRenderer(i);↵ | 1 | XYItemRenderer r = getRenderer(i);↵ | |
2 | if (i >= getDatasetCount()) { // we need the dataset to make↵ | 2 | if (i >= getDatasetCount()) { // we need the dataset to make↵ | |
3 | continue; // a link to the axes↵ | 3 | continue; // a link to the axes↵ | |
4 | }↵ | 4 | }↵ | |
5 | if (r != null) {↵ | 5 | if (r != null) {↵ | |
6 | ValueAxis domainAxis = getDomainAxisForDataset(i);↵ | 6 | ValueAxis domainAxis = getDomainAxisForDataset(i);↵ | |
7 | ValueAxis rangeAxis = getRangeAxisForDataset(i);↵ | 7 | ValueAxis rangeAxis = getRangeAxisForDataset(i);↵ | |
8 | r.drawAnnotations(g2, dataArea, domainAxis, rangeAxis,↵ | 8 | r.drawAnnotations(g2, dataArea, domainAxis, rangeAxis,↵ | |
9 | Layer.BACKGROUND, info);↵ | 9 | Layer.FOREGROUND, info);↵ | |
10 | } | 10 |
| |
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.6 |
Clones location | Clones are in the same method |
Number of node comparisons | 43 |
Number of mapped statements | 7 |
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) | 26.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
88 | XYItemRenderer r = getRenderer(i); | 98 | XYItemRenderer r = getRenderer(i); | |||||||||||
89 | if (i >= getDatasetCount()) | 99 | if (i >= getDatasetCount()) | |||||||||||
90 | continue; |
| 100 | continue; | ||||||||||
91 | if (r != null) | 101 | if (r != null) | |||||||||||
92 | ValueAxis domainAxis = getDomainAxisForDataset(i); | 102 | ValueAxis domainAxis = getDomainAxisForDataset(i); | |||||||||||
93 | ValueAxis rangeAxis = getRangeAxisForDataset(i); | 103 | ValueAxis rangeAxis = getRangeAxisForDataset(i); | |||||||||||
94 | r.drawAnnotations(g2, dataArea, domainAxis, rangeAxis, Layer.BACKGROUND, info); |
| 104 | r.drawAnnotations(g2, dataArea, domainAxis, rangeAxis, Layer.FOREGROUND, info); |
Row | Violation |
---|---|
1 | Statement continue; without innermost loop |
2 | Statement continue; without innermost loop |