File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/ContourPlot.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/ContourPlot.java | |||
Method name: void draw(Graphics2D, Rectangle2D, Point2D, PlotState, PlotRenderingInfo)
|
Method name: void draw(Graphics2D, Rectangle2D, Point2D, PlotState, PlotRenderingInfo)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (this.domainMarkers != null) {↵ | 1 | if (this.rangeMarkers != null) {↵ | |
2 | Iterator iterator = this.domainMarkers.iterator();↵ | 2 | Iterator iterator = this.rangeMarkers.iterator();↵ | |
3 | while (iterator.hasNext()) {↵ | 3 | while (iterator.hasNext()) {↵ | |
4 | Marker marker = (Marker) iterator.next();↵ | 4 | Marker marker = (Marker) iterator.next();↵ | |
5 | drawDomainMarker(g2, this, getDomainAxis(), marker, dataArea);↵ | 5 | drawRangeMarker(g2, this, getRangeAxis(), marker, dataArea);↵ | |
6 | }↵ | 6 | }↵ | |
7 | } | 7 |
| |
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 in the same method |
Number of node comparisons | 13 |
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) | 165.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
55 | if (this.domainMarkers != null) |
| 60 | if (this.rangeMarkers != null) | |||||||||||||||||
56 | Iterator iterator = this.domainMarkers.iterator(); |
| 61 | Iterator iterator = this.rangeMarkers.iterator(); | |||||||||||||||||
57 | while (iterator.hasNext()) | 62 | while (iterator.hasNext()) | ||||||||||||||||||
58 | Marker marker = (Marker)iterator.next(); | 63 | Marker marker = (Marker)iterator.next(); | ||||||||||||||||||
59 | drawDomainMarker(g2, this, getDomainAxis(), marker, dataArea); |
| 64 | drawRangeMarker(g2, this, getRangeAxis(), marker, dataArea); |
Row | Violation |
---|---|
1 | Expression drawDomainMarker(g2,this,getDomainAxis(),marker,dataArea) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression drawRangeMarker(g2,this,getRangeAxis(),marker,dataArea) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression drawDomainMarker(g2,this,getDomainAxis(),marker,dataArea) is a void method call, and thus it cannot be parameterized |
4 | Expression drawRangeMarker(g2,this,getRangeAxis(),marker,dataArea) is a void method call, and thus it cannot be parameterized |