File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/PolarPlot.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/PolarPlot.java | |||
Method name: void drawGridlines(Graphics2D, Rectangle2D, List, List)
|
Method name: void drawGridlines(Graphics2D, Rectangle2D, List, List)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 4 | |||
1 | if (isAngleGridlinesVisible()) {↵ | |||
2 | Stroke gridStroke = getAngleGridlineStroke();↵ | 1 | Stroke gridStroke = getRadiusGridlineStroke();↵ | |
3 | Paint gridPaint = getAngleGridlinePaint();↵ | 2 | Paint gridPaint = getRadiusGridlinePaint();↵ | |
4 | if ((gridStroke != null) && (gridPaint != null)) {↵ | 3 | if ((gridStroke != null) && (gridPaint != null)) {↵ | |
5 | this.renderer.drawAngularGridLines(g2, this, angularTicks,↵ | 4 | this.renderer.drawRadialGridLines(g2, this, this.axis,↵ | |
6 | dataArea);↵ | 5 | radialTicks, dataArea);↵ | |
7 | }↵ | 6 |
| |
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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 9 |
Number of mapped statements | 4 |
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) | 10.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | Stroke gridStroke = getAngleGridlineStroke(); |
| 9 | Stroke gridStroke = getRadiusGridlineStroke(); | |||||||||||||||||
5 | Paint gridPaint = getAngleGridlinePaint(); |
| 10 | Paint gridPaint = getRadiusGridlinePaint(); | |||||||||||||||||
6 | if ((gridStroke != null) && (gridPaint != null)) | 11 | if ((gridStroke != null) && (gridPaint != null)) | ||||||||||||||||||
7 | this.renderer.drawAngularGridLines(g2, this, angularTicks, dataArea); |
| 12 | this.renderer.drawRadialGridLines(g2, this, this.axis, radialTicks, dataArea); |
Row | Violation |
---|---|
1 | Expression this.renderer.drawAngularGridLines(g2,this,angularTicks,dataArea) is a void method call, and thus it cannot be parameterized |
2 | Expression this.renderer.drawRadialGridLines(g2,this,this.axis,radialTicks,dataArea) is a void method call, and thus it cannot be parameterized |
3 | Expression this.renderer.drawAngularGridLines(g2,this,angularTicks,dataArea) is a void method call, and thus it cannot be parameterized |
4 | Expression this.renderer.drawRadialGridLines(g2,this,this.axis,radialTicks,dataArea) is a void method call, and thus it cannot be parameterized |